public class MapBasedNamespaceContext extends AbstractNamespaceContext
Map.| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
namespaces |
| Constructor and Description |
|---|
MapBasedNamespaceContext(java.util.Map map)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
doGetNamespaceURI(java.lang.String prefix)
Get namespace URI bound to a prefix in the current scope.
|
protected java.lang.String |
doGetPrefix(java.lang.String nsURI)
Get prefix bound to namespace URI in the current scope.
|
protected java.util.Iterator |
doGetPrefixes(java.lang.String nsURI)
Get all prefixes bound to a namespace URI in the current scope.
|
getNamespaceURI, getPrefix, getPrefixespublic MapBasedNamespaceContext(java.util.Map map)
map - a map containing the (prefix, namespace URI) entriesprotected java.lang.String doGetNamespaceURI(java.lang.String prefix)
AbstractNamespaceContextNamespaceContext.getNamespaceURI(String), except that the
implementation is not required to handle the implicit namespace bindings.doGetNamespaceURI in class AbstractNamespaceContextprefix - prefix to look upprotected java.lang.String doGetPrefix(java.lang.String nsURI)
AbstractNamespaceContextNamespaceContext.getPrefix(String),
except that the implementation is not required to handle the implicit
namespace bindings.doGetPrefix in class AbstractNamespaceContextnsURI - URI of namespace to lookupprotected java.util.Iterator doGetPrefixes(java.lang.String nsURI)
AbstractNamespaceContextNamespaceContext.getPrefixes(String), except that the
implementation is not required to handle the implicit namespace bindings.doGetPrefixes in class AbstractNamespaceContextnsURI - URI of namespace to lookup