class WSDL::XMLSchema::AttributeGroup

Attributes

attributes[W]
name[W]
ref[RW]

Public Class Methods

attr_reader_ref(symbol) click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 19
def attr_reader_ref(symbol)
  name = symbol.to_s
  define_method(name) {
    instance_variable_get("@#{name}") ||
      (refelement ? refelement.__send__(name) : nil)
  }
end
new() click to toggle source
Calls superclass method WSDL::Info.new
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 46
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 72
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 62
def parse_element(element)
  case element
  when AttributeName
    @attributes ||= XSD::NamedElements.new
    o = Attribute.new
    @attributes << o
    o
  end
end
refelement() click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 54
def refelement
  @refelement ||= root.collect_attributegroups[@ref]
end
targetnamespace() click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 58
def targetnamespace
  parent.targetnamespace
end