Class: RGen::Instantiator::NodebasedXMLInstantiator::XMLNodeDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/rgen/instantiator/nodebased_xml_instantiator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def attributes
  @attributes
end

#chardataObject (readonly)

Returns the value of attribute chardata.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def chardata
  @chardata
end

#childrenObject

Returns the value of attribute children.



31
32
33
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 31

def children
  @children
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def namespace
  @namespace
end

#objectObject

Returns the value of attribute object.



31
32
33
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 31

def object
  @object
end

#parentObject (readonly)

Returns the value of attribute parent.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def parent
  @parent
end

#prefixObject (readonly)

Returns the value of attribute prefix.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def prefix
  @prefix
end

#qtagObject (readonly)

Returns the value of attribute qtag.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def qtag
  @qtag
end

#tagObject (readonly)

Returns the value of attribute tag.



30
31
32
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 30

def tag
  @tag
end