Package eu.europa.esig.dss
Class NamespaceContextMap
java.lang.Object
eu.europa.esig.dss.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
Returns a prefix map (a copy)- Returns:
- a map between prefixes and their corresponding uris
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-