Parent

Class/Module Index [+]

Quicksearch

RGen::Instantiator::NodebasedXMLInstantiator::Visitor

Attributes

namespaces[R]

Public Class Methods

new(inst) click to toggle source
# File lib/rgen/instantiator/nodebased_xml_instantiator.rb, line 44
def initialize(inst)
  @instantiator = inst
  @namespaces = {}
end

Public Instance Methods

characters(str) click to toggle source
# File lib/rgen/instantiator/nodebased_xml_instantiator.rb, line 61
def characters(str)
  @instantiator.on_chardata(str)
end
end_element(name) click to toggle source
# File lib/rgen/instantiator/nodebased_xml_instantiator.rb, line 57
def end_element(name)
  @instantiator.end_element
end
start_element_namespace(tag, attributes, prefix, uri, ns) click to toggle source
# File lib/rgen/instantiator/nodebased_xml_instantiator.rb, line 49
def start_element_namespace(tag, attributes, prefix, uri, ns)
  ns.each{|n| @namespaces[n[0]] = n[1]}
  attrs = {}
  attributes.each{|a| attrs[a.prefix ? a.prefix+":"+a.localname : a.localname] = a.value}
  qname = prefix ? prefix+":"+tag : tag
  @instantiator.start_element(uri, qname, prefix, tag, attrs) 
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.