class WSDL::XMLSchema::AttributeGroup

Attributes

attributes[W]
name[W]

Public Class Methods

new() click to toggle source
Calls superclass method WSDL::Info::new
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 26
def initialize
  super
  @name = nil
  @attributes = nil
  @ref = nil
  @refelement = nil
end

Public Instance Methods

parse_attr(attr, value) click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 48
def parse_attr(attr, value)
  case attr
  when NameAttrName
    @name = XSD::QName.new(targetnamespace, value.source)
  when RefAttrName
    @ref = value
  else
    nil
  end
end
parse_element(element) click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 38
def parse_element(element)
  case element
  when AttributeName
    @attributes ||= XSD::NamedElements.new
    o = Attribute.new
    @attributes << o
    o
  end
end
targetnamespace() click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 34
def targetnamespace
  parent.targetnamespace
end

Private Instance Methods

refelement() click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 61
def refelement
  @refelement ||= root.collect_attributegroups[@ref]
end