class WSDL::XMLSchema::Choice

Attributes

any[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/wsdl/xmlSchema/choice.rb, line 20
def initialize
  super()
  @any = nil
end

Public Instance Methods

choice?() click to toggle source
# File lib/wsdl/xmlSchema/choice.rb, line 29
def choice?
  true
end
have_any?() click to toggle source
# File lib/wsdl/xmlSchema/choice.rb, line 25
def have_any?
  !!@any
end
parse_element(element) click to toggle source
Calls superclass method
# File lib/wsdl/xmlSchema/choice.rb, line 33
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