Flowdock
method

parse_element

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: WSDL::XMLSchema::ComplexContent
parse_element(element) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/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
Register or log in to add new notes.