Class: RGen::Instantiator::NodebasedXMLInstantiator::XMLNodeDescriptor
- Inherits:
-
Object
- Object
- RGen::Instantiator::NodebasedXMLInstantiator::XMLNodeDescriptor
- Defined in:
- lib/rgen/instantiator/nodebased_xml_instantiator.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#chardata ⇒ Object
readonly
Returns the value of attribute chardata.
-
#children ⇒ Object
Returns the value of attribute children.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#object ⇒ Object
Returns the value of attribute object.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#qtag ⇒ Object
readonly
Returns the value of attribute qtag.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(ns, qtag, prefix, tag, parent, children, attributes) ⇒ XMLNodeDescriptor
constructor
A new instance of XMLNodeDescriptor.
Constructor Details
#initialize(ns, qtag, prefix, tag, parent, children, attributes) ⇒ XMLNodeDescriptor
Returns a new instance of XMLNodeDescriptor.
33 34 35 36 37 38 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 33 def initialize(ns, qtag, prefix, tag, parent, children, attributes) @namespace, @qtag, @prefix, @tag, @parent, @children, @attributes = ns, qtag, prefix, tag, parent, children, attributes @parent.children << self if @parent @chardata = [] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def attributes @attributes end |
#chardata ⇒ Object (readonly)
Returns the value of attribute chardata.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def chardata @chardata end |
#children ⇒ Object
Returns the value of attribute children.
31 32 33 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 31 def children @children end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def namespace @namespace end |
#object ⇒ Object
Returns the value of attribute object.
31 32 33 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 31 def object @object end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def parent @parent end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def prefix @prefix end |
#qtag ⇒ Object (readonly)
Returns the value of attribute qtag.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def qtag @qtag end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
30 31 32 |
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30 def tag @tag end |