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.
20 21 22 23 24 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 20 def initialize super() @namespace = '##any' @processcontents = 'strict' end |
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace.
17 18 19 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 17 def namespace @namespace end |
#processcontents ⇒ Object
Returns the value of attribute processcontents.
18 19 20 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 18 def processcontents @processcontents end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 34 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
30 31 32 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 30 def parse_element(element) nil end |
#targetnamespace ⇒ Object
26 27 28 |
# File 'lib/wsdl/xmlSchema/anyAttribute.rb', line 26 def targetnamespace parent.targetnamespace end |