Class: WSDL::SOAP::LiteralMappingRegistryCreator
- Includes:
- MappingRegistryCreatorSupport
- Defined in:
- lib/wsdl/soap/literalMappingRegistryCreator.rb
Constant Summary
Constants included from XSD::CodeGen
XSD::CodeGen::CONSTANTS, XSD::CodeGen::KEYWORDS
Instance Method Summary collapse
- #dump(varname) ⇒ Object
-
#initialize(definitions, modulepath) ⇒ LiteralMappingRegistryCreator
constructor
A new instance of LiteralMappingRegistryCreator.
Methods included from MappingRegistryCreatorSupport
#attribute_basetype, #basetype_class, #define_attribute, #dump_entry, #dump_entry_item, #dump_occurrence, #dump_schema_element, #dump_schema_element_definition, #dump_simpletypedef, #dump_simpletypedef_list, #dump_simpletypedef_restriction, #dump_simpletypedef_union, #dump_type, #element_basetype, #name_attribute, #name_element, #parse_elements
Methods included from ClassDefCreatorSupport
#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #nsym, #sym
Methods included from XSD::CodeGen::GenSupport
capitalize, constant?, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize
Constructor Details
#initialize(definitions, modulepath) ⇒ LiteralMappingRegistryCreator
Returns a new instance of LiteralMappingRegistryCreator.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/wsdl/soap/literalMappingRegistryCreator.rb', line 20 def initialize(definitions, modulepath) @definitions = definitions @modulepath = modulepath @elements = definitions.collect_elements @elements.uniq! @attributes = definitions.collect_attributes @attributes.uniq! @simpletypes = definitions.collect_simpletypes @simpletypes.uniq! @complextypes = definitions.collect_complextypes @complextypes.uniq! @varname = nil end |
Instance Method Details
#dump(varname) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/wsdl/soap/literalMappingRegistryCreator.rb', line 34 def dump(varname) @varname = varname result = '' str = dump_complextype unless str.empty? result << "\n" unless result.empty? result << str end str = dump_simpletype unless str.empty? result << "\n" unless result.empty? result << str end str = dump_element unless str.empty? result << "\n" unless result.empty? result << str end str = dump_attribute unless str.empty? result << "\n" unless result.empty? result << str end result end |