Class: WSDL::XMLSchema::Sequence
- Defined in:
- lib/wsdl/xmlSchema/sequence.rb
Instance Attribute Summary collapse
-
#any ⇒ Object
readonly
Returns the value of attribute any.
Attributes inherited from Content
#elements, #maxoccurs, #minoccurs
Attributes inherited from Info
Instance Method Summary collapse
- #have_any? ⇒ Boolean
-
#initialize ⇒ Sequence
constructor
A new instance of Sequence.
- #parse_element(element) ⇒ Object
Methods inherited from Content
#<<, #choice?, #elementformdefault, #map_as_array?, #nested_elements, #parse_attr, #targetnamespace
Methods inherited from Info
#inspect, #parse_attr, #parse_epilogue
Constructor Details
#initialize ⇒ Sequence
Returns a new instance of Sequence.
19 20 21 22 |
# File 'lib/wsdl/xmlSchema/sequence.rb', line 19 def initialize super() @any = nil end |
Instance Attribute Details
#any ⇒ Object (readonly)
Returns the value of attribute any.
17 18 19 |
# File 'lib/wsdl/xmlSchema/sequence.rb', line 17 def any @any end |
Instance Method Details
#have_any? ⇒ Boolean
24 25 26 |
# File 'lib/wsdl/xmlSchema/sequence.rb', line 24 def have_any? !!@any end |
#parse_element(element) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/wsdl/xmlSchema/sequence.rb', line 28 def parse_element(element) case element when SequenceName o = Sequence.new @elements << o o when ChoiceName o = Choice.new @elements << o o when GroupName o = Group.new @elements << o o when AnyName @any = Any.new @elements << @any @any else super(element) end end |