# File lib/wsdl/xmlSchema/schema.rb, line 32 32: def initialize 33: super 34: @targetnamespace = nil 35: @complextypes = XSD::NamedElements.new 36: @simpletypes = XSD::NamedElements.new 37: @elements = XSD::NamedElements.new 38: @attributes = XSD::NamedElements.new 39: @modelgroups = XSD::NamedElements.new 40: @attributegroups = XSD::NamedElements.new 41: @imports = [] 42: @attributeformdefault = "unqualified" 43: @elementformdefault = "unqualified" 44: @importedschema = {} 45: @location = nil 46: @root = self 47: @version = nil 48: end
# File lib/wsdl/xmlSchema/schema.rb, line 131 131: def collect_attributegroups 132: result = XSD::NamedElements.new 133: result.concat(@attributegroups) 134: @imports.each do |import| 135: result.concat(import.content.collect_attributegroups) if import.content 136: end 137: result 138: end
# File lib/wsdl/xmlSchema/schema.rb, line 113 113: def collect_attributes 114: result = XSD::NamedElements.new 115: result.concat(@attributes) 116: @imports.each do |import| 117: result.concat(import.content.collect_attributes) if import.content 118: end 119: result 120: end
# File lib/wsdl/xmlSchema/schema.rb, line 149 149: def collect_complextypes 150: result = XSD::NamedElements.new 151: result.concat(@complextypes) 152: @imports.each do |import| 153: result.concat(import.content.collect_complextypes) if import.content 154: end 155: result 156: end
# File lib/wsdl/xmlSchema/schema.rb, line 140 140: def collect_elements 141: result = XSD::NamedElements.new 142: result.concat(@elements) 143: @imports.each do |import| 144: result.concat(import.content.collect_elements) if import.content 145: end 146: result 147: end
# File lib/wsdl/xmlSchema/schema.rb, line 122 122: def collect_modelgroups 123: result = XSD::NamedElements.new 124: result.concat(@modelgroups) 125: @imports.each do |import| 126: result.concat(import.content.collect_modelgroups) if import.content 127: end 128: result 129: end
# File lib/wsdl/xmlSchema/schema.rb, line 158 158: def collect_simpletypes 159: result = XSD::NamedElements.new 160: result.concat(@simpletypes) 161: @imports.each do |import| 162: result.concat(import.content.collect_simpletypes) if import.content 163: end 164: result 165: end
# File lib/wsdl/xmlSchema/schema.rb, line 50 50: def location 51: @location || (root.nil? ? nil : root.location) 52: end
# File lib/wsdl/xmlSchema/schema.rb, line 54 54: def location=(location) 55: @location = location 56: end
# File lib/wsdl/xmlSchema/schema.rb, line 98 98: def parse_attr(attr, value) 99: case attr 100: when TargetNamespaceAttrName 101: @targetnamespace = value.source 102: when AttributeFormDefaultAttrName 103: @attributeformdefault = value.source 104: when ElementFormDefaultAttrName 105: @elementformdefault = value.source 106: when VersionAttrName 107: @version = value.source 108: else 109: nil 110: end 111: end
# File lib/wsdl/xmlSchema/schema.rb, line 58 58: def parse_element(element) 59: case element 60: when ImportName 61: o = Import.new 62: @imports << o 63: o 64: when IncludeName 65: o = Include.new 66: @imports << o 67: o 68: when ComplexTypeName 69: o = ComplexType.new 70: @complextypes << o 71: o 72: when SimpleTypeName 73: o = SimpleType.new 74: @simpletypes << o 75: o 76: when ElementName 77: o = Element.new 78: o.form = 'qualified' # root element is qualified 79: @elements << o 80: o 81: when AttributeName 82: o = Attribute.new 83: @attributes << o 84: o 85: when GroupName 86: o = Group.new 87: @modelgroups << o 88: o 89: when AttributeGroupName 90: o = AttributeGroup.new 91: @attributegroups << o 92: o 93: else 94: nil 95: end 96: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.