Class: WSDL::SOAP::EncodedMappingRegistryCreator

Inherits:
Object
  • Object
show all
Includes:
MappingRegistryCreatorSupport
Defined in:
lib/wsdl/soap/encodedMappingRegistryCreator.rb

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

Instance Method Summary collapse

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

#initialize(definitions, name_creator, modulepath, defined_const) ⇒ EncodedMappingRegistryCreator

Returns 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

#definitionsObject (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



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