net.sf.xaj.support
Class BasicNamespaceContext
java.lang.Object
net.sf.xaj.support.BasicNamespaceContext
- All Implemented Interfaces:
- javax.xml.namespace.NamespaceContext
public class BasicNamespaceContext
- extends java.lang.Object
- implements javax.xml.namespace.NamespaceContext
A configurable NamespaceContext
to use with XPath.
The configurable properties of this class are:
- namesapcePrefixMap
- A mapping of prefix values to namespace URI values.
- Version:
- $Revision$ $Date$
- Author:
- matt
Method Summary |
java.util.Map<java.lang.String,java.lang.String> |
getNamespacePrefixMap()
|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getPrefix(java.lang.String namespaceURI)
|
java.util.Iterator |
getPrefixes(java.lang.String namespaceURI)
|
void |
init()
Initialize this class for use, after configuring the class properties. |
void |
setNamespacePrefixMap(java.util.Map<java.lang.String,java.lang.String> namespacePrefixMap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicNamespaceContext
public BasicNamespaceContext()
init
public void init()
- Initialize this class for use, after configuring the class properties.
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
- Specified by:
getPrefix
in interface javax.xml.namespace.NamespaceContext
getPrefixes
public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
- Specified by:
getPrefixes
in interface javax.xml.namespace.NamespaceContext
getNamespacePrefixMap
public java.util.Map<java.lang.String,java.lang.String> getNamespacePrefixMap()
- Returns:
- the namespacePrefixMap
setNamespacePrefixMap
public void setNamespacePrefixMap(java.util.Map<java.lang.String,java.lang.String> namespacePrefixMap)
- Parameters:
namespacePrefixMap
- the namespacePrefixMap to set