Class: WSDL::XMLSchema::AnyAttribute

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/anyAttribute.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeAnyAttribute

Returns a new instance of AnyAttribute.



21
22
23
24
25
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 21

def initialize
  super()
  @namespace = '##any'
  @processcontents = 'strict'
end

Instance Attribute Details

#namespaceObject

Returns the value of attribute namespace.



18
19
20
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 18

def namespace
  @namespace
end

#processcontentsObject

Returns the value of attribute processcontents.



19
20
21
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 19

def processcontents
  @processcontents
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



35
36
37
38
39
40
41
42
43
44
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 35

def parse_attr(attr, value)
  case attr
  when NamespaceAttrName
    @namespace = value.source
  when ProcessContentsAttrName
    @processcontents = value.source
  else
    nil
  end
end

#parse_element(element) ⇒ Object



31
32
33
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 31

def parse_element(element)
  nil
end

#targetnamespaceObject



27
28
29
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 27

def targetnamespace
  parent.targetnamespace
end