Class: WSDL::XMLSchema::AnyAttribute
- Defined in:
- lib/wsdl/xmlSchema/anyAttribute.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#processcontents ⇒ Object
Returns the value of attribute processcontents.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ AnyAttribute
constructor
A new instance of AnyAttribute.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
- #targetnamespace ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ AnyAttribute
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
#namespace ⇒ Object
Returns the value of attribute namespace.
18 19 20 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 18 def namespace @namespace end |
#processcontents ⇒ Object
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 |
#targetnamespace ⇒ Object
27 28 29 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 27 def targetnamespace parent.targetnamespace end |