Class: WSDL::SOAP::EncodedMappingRegistryCreator
- Includes:
- MappingRegistryCreatorSupport
- Defined in:
- lib/wsdl/soap/encodedMappingRegistryCreator.rb
Constant Summary
Constants included from XSD::CodeGen
XSD::CodeGen::CONSTANTS, XSD::CodeGen::KEYWORDS
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
Instance Method Summary collapse
- #dump(varname) ⇒ Object
-
#initialize(definitions, modulepath) ⇒ EncodedMappingRegistryCreator
constructor
A new instance of EncodedMappingRegistryCreator.
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) ⇒ EncodedMappingRegistryCreator
Returns a new instance of EncodedMappingRegistryCreator.
22 23 24 25 26 27 28 29 30 |
# File 'lib/wsdl/soap/encodedMappingRegistryCreator.rb', line 22 def initialize(definitions, modulepath) @definitions = definitions @modulepath = modulepath @simpletypes = definitions.collect_simpletypes @simpletypes.uniq! @complextypes = definitions.collect_complextypes @complextypes.uniq! @varname = nil end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
20 21 22 |
# File 'lib/wsdl/soap/encodedMappingRegistryCreator.rb', line 20 def definitions @definitions end |
Instance Method Details
#dump(varname) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/wsdl/soap/encodedMappingRegistryCreator.rb', line 32 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 result end |