org.apache.xpath.domapi

Class XPathNSResolverImpl

Implemented Interfaces:
PrefixResolver, XPathNSResolver

public class XPathNSResolverImpl
extends PrefixResolverDefault
implements 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.

See Also:
XPathNSResolver

Constructor Summary

XPathNSResolverImpl(Node xpathExpressionContext)
Constructor for XPathNSResolverImpl.

Method Summary

String
lookupNamespaceURI(String prefix)

Methods inherited from class org.apache.xml.utils.PrefixResolverDefault

getBaseIdentifier, getNamespaceForPrefix, getNamespaceForPrefix, handlesNullPrefixes

Constructor Details

XPathNSResolverImpl

public XPathNSResolverImpl(Node xpathExpressionContext)
Constructor for XPathNSResolverImpl.
Parameters:
xpathExpressionContext -

Method Details

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
Specified by:
lookupNamespaceURI in interface XPathNSResolver

Copyright B) 2004 Apache XML Project. All Rights Reserved.