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.



35
36
37
38
39
40
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 35

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.



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

def attributes
  @attributes
end

#chardataObject (readonly)

Returns the value of attribute chardata.



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

def chardata
  @chardata
end

#childrenObject

Returns the value of attribute children.



33
34
35
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 33

def children
  @children
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



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

def namespace
  @namespace
end

#objectObject

Returns the value of attribute object.



33
34
35
# File 'lib/rgen/instantiator/nodebased_xml_instantiator.rb', line 33

def object
  @object
end

#parentObject (readonly)

Returns the value of attribute parent.



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

def parent
  @parent
end

#prefixObject (readonly)

Returns the value of attribute prefix.



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

def prefix
  @prefix
end

#qtagObject (readonly)

Returns the value of attribute qtag.



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

def qtag
  @qtag
end

#tagObject (readonly)

Returns the value of attribute tag.



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

def tag
  @tag
end