Class: WSDL::SOAP::EncodedMappingRegistryCreator
- Inherits:
-
Object
- Object
- WSDL::SOAP::EncodedMappingRegistryCreator
- Includes:
- MappingRegistryCreatorSupport
- Defined in:
- lib/wsdl/soap/encodedMappingRegistryCreator.rb
Constant Summary
Constant Summary
Constants included from MappingRegistryCreatorSupport
MappingRegistryCreatorSupport::DEFAULT_ITEM_NAME
Constants included from XSD::CodeGen
XSD::CodeGen::CONSTANTS, XSD::CodeGen::KEYWORDS
Instance Attribute Summary (collapse)
-
- (Object) definitions
readonly
Returns the value of attribute definitions.
Instance Method Summary (collapse)
- - (Object) dump(varname)
-
- (EncodedMappingRegistryCreator) initialize(definitions, name_creator, modulepath, defined_const)
constructor
A new instance of EncodedMappingRegistryCreator.
Methods included from MappingRegistryCreatorSupport
#create_array_element_definition, #define_attribute, #define_dump_class, #dump_array_typemap, #dump_complex_typemap, #dump_complextypedef, #dump_encoded_array_typemap, #dump_entry, #dump_entry_item, #dump_literal_array_typemap, #dump_occurrence, #dump_schema_element, #dump_schema_element_definition, #dump_simple_typemap, #dump_simpletypedef, #dump_simpletypedef_list, #dump_simpletypedef_restriction, #dump_simpletypedef_union, #dump_type, #dump_with_inner, #parse_elements
Methods included from ClassDefCreatorSupport
#assign_const, #basetype_mapped_class, #create_type_name, #dq, #dqname, #dump_method_signature, #mapped_class_basename, #mapped_class_name, #ndq, #nsym, #sym
Methods included from XSD::CodeGen::GenSupport
#capitalize, #constant?, #format, #keyword?, #safeconstname, #safeconstname?, #safemethodname, #safemethodname?, #safevarname, #safevarname?, #uncapitalize
Constructor Details
- (EncodedMappingRegistryCreator) initialize(definitions, name_creator, modulepath, defined_const)
A new instance of EncodedMappingRegistryCreator
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/wsdl/soap/encodedMappingRegistryCreator.rb', line 22 def initialize(definitions, name_creator, modulepath, defined_const) @definitions = definitions @name_creator = name_creator @modulepath = modulepath @simpletypes = definitions.collect_simpletypes @simpletypes.uniq! @complextypes = definitions.collect_complextypes @complextypes.uniq! @varname = nil @defined_const = defined_const end |
Instance Attribute Details
- (Object) definitions (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
- (Object) dump(varname)
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/wsdl/soap/encodedMappingRegistryCreator.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 result end |