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 NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
Copyright © 2006–2018 Jasig. All rights reserved.