public final class NamespaceContextMap extends Object implements NamespaceContext
Constructor and Description |
---|
NamespaceContextMap(Map<String,String> prefixMappings)
Constructor that takes a map of XML prefix-namespaceURI values.
|
NamespaceContextMap(String... mappingPairs)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMap() |
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator<String> |
getPrefixes(String namespaceURI) |
String |
toString() |
public NamespaceContextMap(Map<String,String> prefixMappings)
prefixMappings
- a map of prefix:namespaceURI valuespublic NamespaceContextMap(String... mappingPairs)
mappingPairs
- pairs of prefix-namespaceURI valuespublic String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
public Map<String,String> getMap()
Copyright © 2012–2022 The DAISY Consortium. All rights reserved.