Class: LibXMLJRuby::XML::XPath::Object::CustomNamespaceContext

Inherits:
Object
  • Object
show all
Defined in:
lib/libxml-jruby/xml/xpath.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resolver) ⇒ CustomNamespaceContext

Returns a new instance of CustomNamespaceContext.



79
80
81
# File 'lib/libxml-jruby/xml/xpath.rb', line 79

def initialize(resolver)
  @resolver = resolver
end

Instance Attribute Details

#resolverObject (readonly)

Returns the value of attribute resolver.



77
78
79
# File 'lib/libxml-jruby/xml/xpath.rb', line 77

def resolver
  @resolver
end

Instance Method Details

#getNamespaceURI(prefix) ⇒ Object



83
84
85
# File 'lib/libxml-jruby/xml/xpath.rb', line 83

def getNamespaceURI(prefix)
	resolver.getNamespaceForPrefix(prefix)
end

#getPrefix(uri) ⇒ Object



91
92
93
# File 'lib/libxml-jruby/xml/xpath.rb', line 91

def getPrefix(uri)
   nil
end

#getPrefixes(val) ⇒ Object



87
88
89
# File 'lib/libxml-jruby/xml/xpath.rb', line 87

def getPrefixes(val)
	nil
end