class WSDL::SOAP::EncodedMappingRegistryCreator

Attributes

definitions[R]

Public Class Methods

new(definitions, name_creator, modulepath, defined_const) click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 23
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

Public Instance Methods

dump(varname) click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 35
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

Private Instance Methods

dump_complextype() click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 53
def dump_complextype
  @complextypes.collect { |type|
    unless type.abstract
      dump_with_inner {
        dump_complextypedef(@modulepath, type.name, type, nil, :encoded => true)
      }
    end
  }.compact.join("\n")
end
dump_simpletype() click to toggle source
# File lib/wsdl/soap/encodedMappingRegistryCreator.rb, line 63
def dump_simpletype
  @simpletypes.collect { |type|
    dump_with_inner {
      dump_simpletypedef(@modulepath, type.name, type, nil, :encoded => true)
    }
  }.compact.join("\n")
end