# File lib/wsdl/soap/literalMappingRegistryCreator.rb, line 20 20: def initialize(definitions, name_creator, modulepath, defined_const) 21: @definitions = definitions 22: @name_creator = name_creator 23: @modulepath = modulepath 24: @elements = definitions.collect_elements 25: @elements.uniq! 26: @attributes = definitions.collect_attributes 27: @attributes.uniq! 28: @simpletypes = definitions.collect_simpletypes 29: @simpletypes.uniq! 30: @complextypes = definitions.collect_complextypes 31: @complextypes.uniq! 32: @varname = nil 33: @defined_const = defined_const 34: end
# File lib/wsdl/soap/literalMappingRegistryCreator.rb, line 36 36: def dump(varname) 37: @varname = varname 38: result = '' 39: str = dump_complextype 40: unless str.empty? 41: result << "\n" unless result.empty? 42: result << str 43: end 44: str = dump_simpletype 45: unless str.empty? 46: result << "\n" unless result.empty? 47: result << str 48: end 49: str = dump_element 50: unless str.empty? 51: result << "\n" unless result.empty? 52: result << str 53: end 54: str = dump_attribute 55: unless str.empty? 56: result << "\n" unless result.empty? 57: result << str 58: end 59: result 60: end
# File lib/wsdl/soap/literalMappingRegistryCreator.rb, line 84 84: def dump_attribute 85: @attributes.collect { |attr| 86: if attr.local_simpletype 87: dump_with_inner { 88: dump_simpletypedef(@modulepath, attr.name, attr.local_simpletype) 89: } 90: end 91: }.compact.join("\n") 92: end
# File lib/wsdl/soap/literalMappingRegistryCreator.rb, line 102 102: def dump_complextype 103: @complextypes.collect { |type| 104: unless type.abstract 105: dump_with_inner { 106: dump_complextypedef(@modulepath, type.name, type) 107: } 108: end 109: }.compact.join("\n") 110: end
# File lib/wsdl/soap/literalMappingRegistryCreator.rb, line 64 64: def dump_element 65: @elements.collect { |ele| 66: # has the definition different from the complexType of the same name 67: next if ele.type.nil? and @complextypes[ele.name] 68: dump_with_inner { 69: if typedef = ele.local_complextype 70: dump_complextypedef(@modulepath, ele.name, typedef) 71: elsif typedef = ele.local_simpletype 72: dump_simpletypedef(@modulepath, ele.name, typedef) 73: elsif ele.type 74: if typedef = @complextypes[ele.type] 75: dump_complextypedef(@modulepath, ele.type, typedef, ele.name) 76: elsif typedef = @simpletypes[ele.type] 77: dump_simpletypedef(@modulepath, ele.type, typedef, ele.name) 78: end 79: end 80: } 81: }.compact.join("\n") 82: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.