public class MapBasedNamespaceContext extends AbstractNamespaceContext
Map
.Modifier and Type | Field and Description |
---|---|
protected Map |
namespaces |
Constructor and Description |
---|
MapBasedNamespaceContext(Map map) |
Modifier and Type | Method and Description |
---|---|
protected String |
doGetNamespaceURI(String prefix)
Get namespace URI bound to a prefix in the current scope.
|
protected String |
doGetPrefix(String nsURI)
Get prefix bound to namespace URI in the current scope.
|
protected Iterator |
doGetPrefixes(String nsURI)
Get all prefixes bound to a namespace URI in the current scope.
|
getNamespaceURI, getPrefix, getPrefixes
protected Map namespaces
public MapBasedNamespaceContext(Map map)
protected String doGetNamespaceURI(String prefix)
AbstractNamespaceContext
NamespaceContext.getNamespaceURI(String)
, except that the
implementation is not required to handle the implicit namespace bindings.doGetNamespaceURI
in class AbstractNamespaceContext
prefix
- prefix to look upprotected String doGetPrefix(String nsURI)
AbstractNamespaceContext
NamespaceContext.getPrefix(String)
,
except that the implementation is not required to handle the implicit
namespace bindings.doGetPrefix
in class AbstractNamespaceContext
nsURI
- URI of namespace to lookupprotected Iterator doGetPrefixes(String nsURI)
AbstractNamespaceContext
NamespaceContext.getPrefixes(String)
, except that the
implementation is not required to handle the implicit namespace bindings.doGetPrefixes
in class AbstractNamespaceContext
nsURI
- URI of namespace to lookupCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.