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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus