Class: WSDL::SOAP::LiteralMappingRegistryCreator

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

Constant Summary

Constants included from MappingRegistryCreatorSupport

MappingRegistryCreatorSupport::DEFAULT_ITEM_NAME

Constants included from XSD::CodeGen

XSD::CodeGen::CONSTANTS, XSD::CodeGen::KEYWORDS

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) ⇒ LiteralMappingRegistryCreator

Returns a new instance of LiteralMappingRegistryCreator.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/wsdl/soap/literalMappingRegistryCreator.rb', line 21

def initialize(definitions, name_creator, modulepath, defined_const)
  @definitions = definitions
  @name_creator = name_creator
  @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
  @defined_const = defined_const
end

Instance Method Details

#dump(varname) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/wsdl/soap/literalMappingRegistryCreator.rb', line 37

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