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()
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 - a map of prefix:namespaceURI valuespublic NamespaceContextMap(String... mappingPairs)
mappingPairs - pairs of prefix-namespaceURI valuespublic String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextpublic Iterator<String> getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContextpublic Map<String,String> getMap()
Copyright © 2019. All Rights Reserved.