Parent

Methods

Included Modules

Files

Class Index [+]

Quicksearch

WSDL::SOAP::MappingRegistryCreator

Attributes

definitions[R]

Public Class Methods

new(definitions, name_creator, modulepath = nil) click to toggle source
    # File lib/wsdl/soap/mappingRegistryCreator.rb, line 25
25:   def initialize(definitions, name_creator, modulepath = nil)
26:     @definitions = definitions
27:     @name_creator = name_creator
28:     @modulepath = modulepath
29:   end

Public Instance Methods

dump() click to toggle source
    # File lib/wsdl/soap/mappingRegistryCreator.rb, line 31
31:   def dump
32:     defined_const = {}
33:     encoded_creator = EncodedMappingRegistryCreator.new(@definitions, @name_creator, @modulepath, defined_const)
34:     literal_creator = LiteralMappingRegistryCreator.new(@definitions, @name_creator, @modulepath, defined_const)
35:     wsdl_name = @definitions.name ? @definitions.name.name : 'default'
36:     module_name = safeconstname(wsdl_name + 'MappingRegistry')
37:     if @modulepath
38:       module_name = [@modulepath, module_name].join('::')
39:     end
40:     m = XSD::CodeGen::ModuleDef.new(module_name)
41:     m.def_require("soap/mapping")
42:     varname = 'EncodedRegistry'
43:     m.def_const(varname, '::SOAP::Mapping::EncodedRegistry.new')
44:     m.def_code(encoded_creator.dump(varname))
45:     varname = 'LiteralRegistry'
46:     m.def_const(varname, '::SOAP::Mapping::LiteralRegistry.new')
47:     m.def_code(literal_creator.dump(varname))
48:     #
49:     defined_const.each do |ns, tag|
50:       m.def_const(tag, dq(ns))
51:     end
52:     m.dump
53:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.