Package org.hl7.fhir.utilities.xml
Class NamespaceContextMap
java.lang.Object
org.hl7.fhir.utilities.xml.NamespaceContextMap
An implementation of
NamespaceContext . Instances are immutable.
- Author:
- McDowell
-
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
-
getPrefix
-
getPrefixes
-
getMap
- Returns:
- an unmodifiable map of the mappings in the form prefix-namespaceURI
-