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

In Files

  • wsdl/xmlSchema/content.rb

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::Content

Attributes

contents[R]
elements[R]
final[RW]
mixed[RW]
type[RW]

Public Class Methods

new() click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 23
def initialize
  super()
  @final = nil
  @mixed = false
  @type = nil
  @contents = []
  @elements = []
end
            

Public Instance Methods

<<(content) click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 36
def <<(content)
  @contents << content
  update_elements
end
            
each() click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 41
def each
  @contents.each do |content|
    yield content
  end
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 67
def parse_attr(attr, value)
  case attr
  when FinalAttrName
    @final = value.source
  when MixedAttrName
    @mixed = (value.source == 'true')
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 47
def parse_element(element)
  case element
  when AllName, SequenceName, ChoiceName
    o = Content.new
    o.type = element.name
    @contents << o
    o
  when AnyName
    o = Any.new
    @contents << o
    o
  when ElementName
    o = Element.new
    @contents << o
    o
  else
    nil
  end
end
            
parse_epilogue() click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 78
def parse_epilogue
  update_elements
end
            
targetnamespace() click to toggle source
 
               # File wsdl/xmlSchema/content.rb, line 32
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