Class NamespaceContextMap

java.lang.Object
org.hl7.fhir.utilities.xml.NamespaceContextMap

public final class NamespaceContextMap extends Object
An implementation of NamespaceContext . Instances are immutable.
Author:
McDowell
  • Constructor Details

    • NamespaceContextMap

      public NamespaceContextMap(Map<String,String> prefixMappings)
      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

      public NamespaceContextMap(String... mappingPairs)
      Convenience constructor.
      Parameters:
      mappingPairs - pairs of prefix-namespaceURI values
  • Method Details