Class: WSDL::SOAP::MappingRegistryCreator

Inherits:
Object
  • Object
show all
Includes:
ClassDefCreatorSupport
Defined in:
lib/wsdl/soap/mappingRegistryCreator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassDefCreatorSupport

#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #sym

Constructor Details

#initialize(definitions) ⇒ MappingRegistryCreator


22
23
24
25
26
# File 'lib/wsdl/soap/mappingRegistryCreator.rb', line 22

def initialize(definitions)
  @definitions = definitions
  @complextypes = @definitions.collect_complextypes
  @types = nil
end

Instance Attribute Details

#definitionsObject (readonly)

Returns the value of attribute definitions


20
21
22
# File 'lib/wsdl/soap/mappingRegistryCreator.rb', line 20

def definitions
  @definitions
end

Instance Method Details

#dump(types) ⇒ Object


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/wsdl/soap/mappingRegistryCreator.rb', line 28

def dump(types)
  @types = types
  map_cache = []
  map = ""
  @types.each do |type|
    if map_cache.index(type).nil?
	map_cache << type
	if type.namespace != XSD::Namespace
 if typemap = dump_typemap(type)
          map << typemap
        end
	end
    end
 end
  return map
end