In Files

  • wsdl/xmlSchema/complexContent.rb

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::ComplexContent

Attributes

attributes[R]
base[RW]
content[R]
derivetype[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/xmlSchema/complexContent.rb, line 23
def initialize
  super
  @base = nil
  @derivetype = nil
  @content = nil
  @attributes = XSD::NamedElements.new
  @basetype = nil
end
            

Public Instance Methods

basetype() click to toggle source
 
               # File wsdl/xmlSchema/complexContent.rb, line 40
def basetype
  @basetype ||= root.collect_complextypes[@base]
end
            
elementformdefault() click to toggle source
 
               # File wsdl/xmlSchema/complexContent.rb, line 36
def elementformdefault
  parent.elementformdefault
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/xmlSchema/complexContent.rb, line 77
def parse_attr(attr, value)
  if @derivetype.nil?
    return nil
  end
  case attr
  when BaseAttrName
    @base = value
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/xmlSchema/complexContent.rb, line 44
def parse_element(element)
  case element
  when RestrictionName, ExtensionName
    @derivetype = element.name
    self
  when AllName
    if @derivetype.nil?
      raise Parser::ElementConstraintError.new("base attr not found.")
    end
    @content = All.new
    @content
  when SequenceName
    if @derivetype.nil?
      raise Parser::ElementConstraintError.new("base attr not found.")
    end
    @content = Sequence.new
    @content
  when ChoiceName
    if @derivetype.nil?
      raise Parser::ElementConstraintError.new("base attr not found.")
    end
    @content = Choice.new
    @content
  when AttributeName
    if @derivetype.nil?
      raise Parser::ElementConstraintError.new("base attr not found.")
    end
    o = Attribute.new
    @attributes << o
    o
  end
end
            
targetnamespace() click to toggle source
 
               # File wsdl/xmlSchema/complexContent.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