public final class NamespaceContextMap extends Object implements NamespaceContext
| Constructor and Description |
|---|
NamespaceContextMap(Map<String,String> prefixMappings)
Instantiates a new namespace context map.
|
NamespaceContextMap(String... mappingPairs)
Instantiates a new namespace context map.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMap()
Gets the map.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator<String> |
getPrefixes(String namespaceURI) |
String |
toString() |
public NamespaceContextMap(Map<String,String> prefixMappings)
prefixMappings - the prefix mappingspublic NamespaceContextMap(String... mappingPairs)
mappingPairs - the mapping pairspublic String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextpublic Iterator<String> getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContextCopyright © 2019. All Rights Reserved.