Package eu.europa.esig.dss
Class NamespaceContextMap
java.lang.Object
eu.europa.esig.dss.NamespaceContextMap
- All Implemented Interfaces:
NamespaceContext
public final class NamespaceContextMap extends Object implements NamespaceContext
A class for namespace context management. It is used by XPath queries.
-
Constructor Summary
Constructors Constructor Description NamespaceContextMap()
This is the default constructor -
Method Summary
Modifier and Type Method Description String
getNamespaceURI(String prefix)
String
getPrefix(String namespaceURI)
Iterator<String>
getPrefixes(String namespaceURI)
boolean
registerNamespace(String prefix, String namespace)
This method allows to register a namespace and associated prefix.
-
Constructor Details
-
NamespaceContextMap
public NamespaceContextMap()This is the default constructor
-
-
Method Details
-
registerNamespace
This method allows to register a namespace and associated prefix. If the prefix exists already it is replaced.- Parameters:
prefix
- namespace prefixnamespace
- namespace- Returns:
- true if this map did not already contain the specified element
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-