Parent

Files

Class Index [+]

Quicksearch

WSDL::XMLSchema::ComplexExtension

Attributes

base[RW]
content[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 21
21:   def initialize
22:     super
23:     @base = nil
24:     @basetype = nil
25:     @content = nil
26:     @attributes = XSD::NamedElements.new
27:   end

Public Instance Methods

attributes() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 59
59:   def attributes
60:     basetype.attributes + @attributes
61:   end
check_type() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 63
63:   def check_type
64:     if @base == ::SOAP::ValueArrayName
65:       :TYPE_ARRAY
66:     elsif content or !@attributes.empty?
67:       :TYPE_STRUCT
68:     else
69:       basetype.check_type
70:     end
71:   end
choice?() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 41
41:   def choice?
42:     content and content.choice?
43:   end
elementformdefault() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 33
33:   def elementformdefault
34:     parent.elementformdefault
35:   end
elements() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 45
45:   def elements
46:     result = XSD::NamedElements.new
47:     result.concat(basetype.elements)
48:     result.concat(content.elements) if content
49:     result
50:   end
have_any?() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 37
37:   def have_any?
38:     basetype.have_any? or (content && content.have_any?)
39:   end
nested_elements() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 52
52:   def nested_elements
53:     result = XSD::NamedElements.new
54:     result.concat(basetype.nested_elements)
55:     result.concat(content.nested_elements) if content
56:     result
57:   end
parse_attr(attr, value) click to toggle source
     # File lib/wsdl/xmlSchema/complexExtension.rb, line 99
 99:   def parse_attr(attr, value)
100:     case attr
101:     when BaseAttrName
102:       @base = value
103:     end
104:   end
parse_element(element) click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 73
73:   def parse_element(element)
74:     case element
75:     when AllName
76:       @content = All.new
77:       @content
78:     when SequenceName
79:       @content = Sequence.new
80:       @content
81:     when ChoiceName
82:       @content = Choice.new
83:       @content
84:     when AttributeName
85:       o = Attribute.new
86:       @attributes << o
87:       o
88:     when AttributeGroupName
89:       o = AttributeGroup.new
90:       @attributes << o
91:       o
92:     when AnyAttributeName
93:       o = AnyAttribute.new
94:       @attributes << o
95:       o
96:     end
97:   end
targetnamespace() click to toggle source
    # File lib/wsdl/xmlSchema/complexExtension.rb, line 29
29:   def targetnamespace
30:     parent.targetnamespace
31:   end

Private Instance Methods

basetype() click to toggle source
     # File lib/wsdl/xmlSchema/complexExtension.rb, line 108
108:   def basetype
109:     @basetype ||= root.collect_complextypes[@base]
110:     unless @basetype
111:       raise RuntimeError.new("base type definition not found: #{@base}")
112:     end
113:     @basetype
114:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.