Class: LibXMLJRuby::XML::XPath::Object::CustomNamespaceContext
- Inherits:
-
Object
- Object
- LibXMLJRuby::XML::XPath::Object::CustomNamespaceContext
- Defined in:
- lib/libxml-jruby/xml/xpath.rb
Instance Attribute Summary collapse
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
Instance Method Summary collapse
- #getNamespaceURI(prefix) ⇒ Object
- #getPrefix(uri) ⇒ Object
- #getPrefixes(val) ⇒ Object
-
#initialize(resolver) ⇒ CustomNamespaceContext
constructor
A new instance of CustomNamespaceContext.
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
#resolver ⇒ Object (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 |