public class MapNamespaceContext extends Object implements NamespaceContext
| Constructor and Description |
|---|
MapNamespaceContext(Map<String,String> namespaceMap)
Creates a new instance from a map.
|
MapNamespaceContext(String... namespaceDeclarations)
Creates a new instance from an array of namespace delcarations.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
public MapNamespaceContext(String... namespaceDeclarations)
namespaceDeclarations - An array of namespace declarations of the form prefix->uri.public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextpublic Iterator getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContextCopyright © 2006–2021 Jasig. All rights reserved.