Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "[ Prefix map and context for xmlns declaration generation filter Note: the original code is from Gobo's XM library (http://www.gobosoft.com/) ]" date: "$Date: 2013-05-20 15:15:17 -0800 (Mon, 20 May 2013) $" revision: "$Revision: 92557 $" class interface XML_XMLNS_GENERATOR_CONTEXT create make -- Reset. feature -- Access generating_type: TYPE [detachable XML_XMLNS_GENERATOR_CONTEXT] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: XML_XMLNS_GENERATOR_CONTEXT): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: XML_XMLNS_GENERATOR_CONTEXT): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: XML_XMLNS_GENERATOR_CONTEXT): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) feature -- Duplication copy (other: XML_XMLNS_GENERATOR_CONTEXT) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: XML_XMLNS_GENERATOR_CONTEXT) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: XML_XMLNS_GENERATOR_CONTEXT -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: XML_XMLNS_GENERATOR_CONTEXT) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: XML_XMLNS_GENERATOR_CONTEXT -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: XML_XMLNS_GENERATOR_CONTEXT -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable XML_XMLNS_GENERATOR_CONTEXT -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class feature -- Constants Amp_char: CHARACTER_8 = '&' -- (from XML_MARKUP_CONSTANTS) Amp_entity: STRING_32 = "&amp;" -- (from XML_MARKUP_CONSTANTS) Apos_entity: STRING_32 = "&apos;" -- (from XML_MARKUP_CONSTANTS) Char_entity_prefix: STRING_32 = "&#" -- (from XML_MARKUP_CONSTANTS) Comment_end: STRING_32 = "-->" -- (from XML_MARKUP_CONSTANTS) Comment_start: STRING_32 = "<!--" -- (from XML_MARKUP_CONSTANTS) Cr_char: CHARACTER_8 = '%R' -- (from XML_MARKUP_CONSTANTS) Emptytag_end: STRING_32 = "/>" -- (from XML_MARKUP_CONSTANTS) Emptytag_start: STRING_32 -- (from XML_MARKUP_CONSTANTS) Entity_suffix: STRING_32 = ";" -- (from XML_MARKUP_CONSTANTS) Eq_s: STRING_32 = "=" -- (from XML_MARKUP_CONSTANTS) Etag_end: STRING_32 -- (from XML_MARKUP_CONSTANTS) Etag_start: STRING_32 = "</" -- (from XML_MARKUP_CONSTANTS) Gt_char: CHARACTER_8 = '>' -- (from XML_MARKUP_CONSTANTS) Gt_entity: STRING_32 = "&gt;" -- (from XML_MARKUP_CONSTANTS) Lf_char: CHARACTER_8 = '%N' -- (from XML_MARKUP_CONSTANTS) Lf_s: STRING_32 = "%N" -- (from XML_MARKUP_CONSTANTS) Lt_char: CHARACTER_8 = '<' -- (from XML_MARKUP_CONSTANTS) Lt_entity: STRING_32 = "&lt;" -- (from XML_MARKUP_CONSTANTS) Pi_end: STRING_32 = "?>" -- (from XML_MARKUP_CONSTANTS) Pi_start: STRING_32 = "<?" -- (from XML_MARKUP_CONSTANTS) Prefix_separator: STRING_32 = ":" -- (from XML_MARKUP_CONSTANTS) Quot_char: CHARACTER_8 = '"' -- (from XML_MARKUP_CONSTANTS) Quot_entity: STRING_32 = "&quot;" -- (from XML_MARKUP_CONSTANTS) Quot_s: STRING_32 = "%"" -- (from XML_MARKUP_CONSTANTS) Space_char: CHARACTER_8 = ' ' -- (from XML_MARKUP_CONSTANTS) Space_s: STRING_32 = " " -- (from XML_MARKUP_CONSTANTS) Stag_end: STRING_32 = ">" -- (from XML_MARKUP_CONSTANTS) Stag_start: STRING_32 = "<" -- (from XML_MARKUP_CONSTANTS) Tab_char: CHARACTER_8 = '%T' -- (from XML_MARKUP_CONSTANTS) Xml_base: STRING_32 = "base" -- (from XML_MARKUP_CONSTANTS) Xml_base_with_prefix: STRING_32 = "xml:base" -- (from XML_MARKUP_CONSTANTS) Xml_id: STRING_32 = "id" -- (from XML_MARKUP_CONSTANTS) Xml_id_with_prefix: STRING_32 = "xml:id" -- (from XML_MARKUP_CONSTANTS) Xml_lang: STRING_32 = "lang" -- (from XML_MARKUP_CONSTANTS) Xml_lang_with_prefix: STRING_32 = "xml:lang" -- (from XML_MARKUP_CONSTANTS) Xml_prefix: STRING_32 = "xml" -- (from XML_MARKUP_CONSTANTS) Xml_space: STRING_32 = "space" -- (from XML_MARKUP_CONSTANTS) Xml_space_preserve: STRING_32 = "preserve" -- (from XML_MARKUP_CONSTANTS) Xml_version_1_0: STRING_32 = "1.0" -- (from XML_MARKUP_CONSTANTS) Xml_version_1_1: STRING_32 = "1.1" -- (from XML_MARKUP_CONSTANTS) feature -- Default is_same_as_default (a_namespace: READABLE_STRING_32): BOOLEAN -- Is namespace the same as the default one for the current element? require a_namespace_not_void: a_namespace /= Void set_default (a_namespace: READABLE_STRING_32) -- Set default namespace URI. require a_namespace_not_void: a_namespace /= Void ensure set: same_string (a_namespace, default_namespaces.item) feature -- Elements on_end_element -- Pop context. on_start_element -- Push context. feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Setting force (a_prefix: READABLE_STRING_32; a_namespace: READABLE_STRING_32) -- Add namespace, prefix to context. require a_namespace_not_void: a_namespace /= Void a_namespace_not_empty: not a_namespace.is_empty a_prefix_not_void: a_prefix /= Void a_prefix_not_empty: not a_prefix.is_empty ensure has: has (a_namespace) item: item (a_namespace) = a_prefix feature -- Status element_has_prefix (a_prefix: READABLE_STRING_32): BOOLEAN -- Is this prefix used in the top element? require a_prefix_not_void: a_prefix /= Void a_prefix_not_empty: not a_prefix.is_empty element_prefix (a_prefix: READABLE_STRING_32) -- Declare prefix in use in top element. require a_prefix_not_void: a_prefix /= Void a_prefix_not_empty: not a_prefix.is_empty ensure has: element_has_prefix (a_prefix) has (a_namespace: READABLE_STRING_32): BOOLEAN -- Is namespace known to prefixes table? -- If found, set `last_item` to the related item require a_namespace_not_void: a_namespace /= Void a_namespace_not_empty: not a_namespace.is_empty item (a_namespace: READABLE_STRING_32): detachable READABLE_STRING_32 -- Find prefix for namespace require a_namespace_not_void: a_namespace /= Void a_namespace_not_empty: not a_namespace.is_empty ensure result_not_empty: Result /= Void implies not Result.is_empty new_element_cursor: HASH_TABLE_ITERATION_CURSOR [READABLE_STRING_32, STRING_32] -- New element cursor. ensure result_not_void: Result /= Void feature -- XML namespace Default_namespace: STRING_32 = "" -- (from XML_XMLNS_CONSTANTS) Xmlns: STRING_32 = "xmlns" -- (from XML_XMLNS_CONSTANTS) Xmlns_namespace: STRING_32 = "http://www.w3.org/2000/xmlns/" -- (from XML_XMLNS_CONSTANTS) invariant prefixes_not_void: prefixes /= Void element_prefixes_not_void: element_prefixes /= Void default_namespaces_not_void: default_namespaces /= Void -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2013, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class XML_XMLNS_GENERATOR_CONTEXT
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org