Class: WSDL::SOAP::MappingRegistryCreator
- Includes:
- ClassDefCreatorSupport
- Defined in:
- lib/action_web_service/wsdl/soap/mappingRegistryCreator.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
Instance Method Summary collapse
- #dump(types) ⇒ Object
-
#initialize(definitions) ⇒ MappingRegistryCreator
constructor
A new instance of MappingRegistryCreator.
Methods included from ClassDefCreatorSupport
#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #sym
Methods included from XSD::CodeGen::GenSupport
capitalize, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize
Constructor Details
#initialize(definitions) ⇒ MappingRegistryCreator
Returns a new instance of MappingRegistryCreator.
22 23 24 25 26 |
# File 'lib/action_web_service/wsdl/soap/mappingRegistryCreator.rb', line 22 def initialize(definitions) @definitions = definitions @complextypes = @definitions.collect_complextypes @types = nil end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
20 21 22 |
# File 'lib/action_web_service/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/action_web_service/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 |