class WSDL::XMLSchema::SimpleExtension

Attributes

attributes[R]
base[R]

Public Class Methods

new() click to toggle source
Calls superclass method WSDL::Info::new
# File lib/wsdl/xmlSchema/simpleExtension.rb, line 21
def initialize
  super
  @base = nil
  @attributes = XSD::NamedElements.new
end

Public Instance Methods

parse_attr(attr, value) click to toggle source
# File lib/wsdl/xmlSchema/simpleExtension.rb, line 52
def parse_attr(attr, value)
  case attr
  when BaseAttrName
    @base = value
  end
end
parse_element(element) click to toggle source
# File lib/wsdl/xmlSchema/simpleExtension.rb, line 35
def parse_element(element)
  case element
  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
targetnamespace() click to toggle source
# File lib/wsdl/xmlSchema/simpleExtension.rb, line 27
def targetnamespace
  parent.targetnamespace
end
valid?(value) click to toggle source
# File lib/wsdl/xmlSchema/simpleExtension.rb, line 31
def valid?(value)
  true
end