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 27 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 49 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 39 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 35 def targetnamespace parent.targetnamespace end
Private Instance Methods
refelement()
click to toggle source
# File lib/wsdl/xmlSchema/attributeGroup.rb, line 62 def refelement @refelement ||= root.collect_attributegroups[@ref] end