Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • wsdl/xmlSchema/choice.rb

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::Choice

Attributes

elements[R]
maxoccurs[R]
minoccurs[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 21
def initialize
  super()
  @minoccurs = '1'
  @maxoccurs = '1'
  @elements = []
end
            

Public Instance Methods

<<(element) click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 36
def <<(element)
  @elements << element
end
            
elementformdefault() click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 32
def elementformdefault
  parent.elementformdefault
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 55
def parse_attr(attr, value)
  case attr
  when MaxOccursAttrName
    @maxoccurs = value.source
  when MinOccursAttrName
    @minoccurs = value.source
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 40
def parse_element(element)
  case element
  when AnyName
    o = Any.new
    @elements << o
    o
  when ElementName
    o = Element.new
    @elements << o
    o
  else
    nil
  end
end
            
targetnamespace() click to toggle source
 
               # File wsdl/xmlSchema/choice.rb, line 28
def targetnamespace
  parent.targetnamespace
end