In Files

  • wsdl/soap/classDefCreator.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

WSDL::SOAP::ClassDefCreator

Public Class Methods

new(definitions) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 21
def initialize(definitions)
  @elements = definitions.collect_elements
  @simpletypes = definitions.collect_simpletypes
  @complextypes = definitions.collect_complextypes
  @faulttypes = nil
  if definitions.respond_to?(:collect_faulttypes)
    @faulttypes = definitions.collect_faulttypes
  end
end
            

Public Instance Methods

dump(type = nil) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 31
def dump(type = nil)
  result = "require 'xsd/qname'\n"
  if type
    result = dump_classdef(type.name, type)
  else
    str = dump_element
    unless str.empty?
      result << "\n" unless result.empty?
      result << str
    end
    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
  end
  result
end