public abstract class AbstractNamespaceContext extends Object implements NamespaceContext
NamespaceContext
implementation that takes care of the
implicit namespace bindings (for the xml and xmlns
prefixes) defined in the NamespaceContext
Javadoc.Constructor and Description |
---|
AbstractNamespaceContext() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
doGetNamespaceURI(String prefix)
Get namespace URI bound to a prefix in the current scope.
|
protected abstract String |
doGetPrefix(String namespaceURI)
Get prefix bound to namespace URI in the current scope.
|
protected abstract Iterator |
doGetPrefixes(String namespaceURI)
Get all prefixes bound to a namespace URI in the current scope.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
public final String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
protected abstract String doGetNamespaceURI(String prefix)
NamespaceContext.getNamespaceURI(String)
, except that the
implementation is not required to handle the implicit namespace bindings.prefix
- prefix to look uppublic final String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
protected abstract String doGetPrefix(String namespaceURI)
NamespaceContext.getPrefix(String)
,
except that the implementation is not required to handle the implicit
namespace bindings.namespaceURI
- URI of namespace to lookuppublic final Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
protected abstract Iterator doGetPrefixes(String namespaceURI)
NamespaceContext.getPrefixes(String)
, except that the
implementation is not required to handle the implicit namespace bindings.namespaceURI
- URI of namespace to lookupCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.