Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xpath.domapi
Class XPathNSResolverImpl  view XPathNSResolverImpl download XPathNSResolverImpl.java

java.lang.Object
  extended byorg.apache.xml.utils.PrefixResolverDefault
      extended byorg.apache.xpath.domapi.XPathNSResolverImpl
All Implemented Interfaces:
org.apache.xml.utils.PrefixResolver, org.w3c.dom.xpath.XPathNSResolver

public class XPathNSResolverImpl
extends org.apache.xml.utils.PrefixResolverDefault
implements org.w3c.dom.xpath.XPathNSResolver

The class provides an implementation XPathNSResolver according to the DOM L3 XPath API Specification, Working Draft 28, March 2002.

The XPathNSResolver interface permit prefix strings in the expression to be properly bound to namespaceURI strings. XPathEvaluator can construct an implementation of XPathNSResolver from a node, or the interface may be implemented by any application.

See also the Document Object Model (DOM) Level 3 XPath Specification.


Field Summary
 
Fields inherited from class org.apache.xml.utils.PrefixResolverDefault
 
Constructor Summary
XPathNSResolverImpl(org.w3c.dom.Node xpathExpressionContext)
          Constructor for XPathNSResolverImpl.
 
Method Summary
 java.lang.String lookupNamespaceURI(java.lang.String prefix)
          Look up the namespace URI associated to the given namespace prefix.
 
Methods inherited from class org.apache.xml.utils.PrefixResolverDefault
getBaseIdentifier, getNamespaceForPrefix, getNamespaceForPrefix, handlesNullPrefixes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathNSResolverImpl

public XPathNSResolverImpl(org.w3c.dom.Node xpathExpressionContext)
Constructor for XPathNSResolverImpl.

Method Detail

lookupNamespaceURI

public java.lang.String lookupNamespaceURI(java.lang.String prefix)
Description copied from interface: org.w3c.dom.xpath.XPathNSResolver
Look up the namespace URI associated to the given namespace prefix. The XPath evaluator must never call this with a null or empty argument, because the result of doing this is undefined.

Specified by:
lookupNamespaceURI in interface org.w3c.dom.xpath.XPathNSResolver