# File lib/wsdl/xmlSchema/simpleRestriction.rb, line 59
  def parse_element(element)
    case element
    when LengthName
      Length.new
    when MinLengthName
      MinLength.new
    when MaxLengthName
      MaxLength.new
    when PatternName
      Pattern.new
    when EnumerationName
      Enumeration.new
    when WhiteSpaceName
      WhiteSpace.new
    when MaxInclusiveName
      MaxInclusive.new
    when MaxExclusiveName
      MaxExlusive.new
    when MinExclusiveName
      MinExlusive.new
    when MinInclusiveName
      MinInclusive.new
    when TotalDigitsName
      TotalDigits.new
    when FractionDigitsName
      FractionDigits.new
    when AttributeName
      o = Attribute.new
      @attributes << o
      o
    when AttributeGroupName
      o = AttributeGroup.new
      @attributes << o
      o
    when AnyAttributeName
      o = AnyAttribute.new
      @attributes << o
      o
    end
  end