Package eu.europa.esig.dss.xml.utils
Class NamespaceContextMap
java.lang.Object
eu.europa.esig.dss.xml.utils.NamespaceContextMap
- All Implemented Interfaces:
NamespaceContext
A class for namespace context management. It is used by XPath queries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) getPrefixes
(String namespaceURI) Returns a prefix map (a copy)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
-
getPrefixMap
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-