Class NamespaceContextMap
java.lang.Object
es.juntadeandalucia.afirma.client.util.NamespaceContextMap
- All Implemented Interfaces:
NamespaceContext
-
Constructor Summary
ConstructorsConstructorDescriptionNamespaceContextMap(String... mappingPairs) Convenience constructor.NamespaceContextMap(Map<String, String> prefixMappings) Constructor that takes a map of XML prefix-namespaceURI values. -
Method Summary
-
Constructor Details
-
NamespaceContextMap
Constructor that takes a map of XML prefix-namespaceURI values. A defensive copy is made of the map. An IllegalArgumentException will be thrown if the map attempts to remap the standard prefixes defined in the NamespaceContext contract.- Parameters:
prefixMappings- a map of prefix:namespaceURI values
-
NamespaceContextMap
Convenience constructor.- Parameters:
mappingPairs- pairs of prefix-namespaceURI values
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-
getMap
- Returns:
- an unmodifiable map of the mappings in the form prefix-namespaceURI
-