Parent

Files

Class Index [+]

Quicksearch

WSDL::XMLSchema::ComplexRestriction

Attributes

base[RW]
content[R]
attributes[R]

Public Class Methods

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

Public Instance Methods

check_type() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 54
54:   def check_type
55:     if @base == ::SOAP::ValueArrayName
56:       :TYPE_ARRAY
57:     else
58:       basetype.check_type if basetype
59:     end
60:   end
choice?() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 42
42:   def choice?
43:     @content and @content.choice?
44:   end
elementformdefault() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 34
34:   def elementformdefault
35:     parent.elementformdefault
36:   end
elements() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 46
46:   def elements
47:     @content ? @content.elements : XSD::NamedElements::Empty
48:   end
have_any?() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 38
38:   def have_any?
39:     @content and @content.have_any?
40:   end
nested_elements() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 50
50:   def nested_elements
51:     @content ? @content.nested_elements : XSD::NamedElements::Empty
52:   end
parse_attr(attr, value) click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 88
88:   def parse_attr(attr, value)
89:     case attr
90:     when BaseAttrName
91:       @base = value
92:     end
93:   end
parse_element(element) click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 62
62:   def parse_element(element)
63:     case element
64:     when AllName
65:       @content = All.new
66:       @content
67:     when SequenceName
68:       @content = Sequence.new
69:       @content
70:     when ChoiceName
71:       @content = Choice.new
72:       @content
73:     when AttributeName
74:       o = Attribute.new
75:       @attributes << o
76:       o
77:     when AttributeGroupName
78:       o = AttributeGroup.new
79:       @attributes << o
80:       o
81:     when AnyAttributeName
82:       o = AnyAttribute.new
83:       @attributes << o
84:       o
85:     end
86:   end
targetnamespace() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 30
30:   def targetnamespace
31:     parent.targetnamespace
32:   end

Private Instance Methods

basetype() click to toggle source
    # File lib/wsdl/xmlSchema/complexRestriction.rb, line 97
97:   def basetype
98:     @basetype ||= root.collect_complextypes[@base]
99:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.