org.apache.axiom.util.namespace
Class MapBasedNamespaceContext
java.lang.Object
org.apache.axiom.util.namespace.AbstractNamespaceContext
org.apache.axiom.util.namespace.MapBasedNamespaceContext
- All Implemented Interfaces:
- javax.xml.namespace.NamespaceContext
public class MapBasedNamespaceContext
- extends AbstractNamespaceContext
Namespace context implementation that stores namespace bindings in a Map.
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespaces
protected java.util.Map namespaces
MapBasedNamespaceContext
public MapBasedNamespaceContext(java.util.Map map)
doGetNamespaceURI
protected java.lang.String doGetNamespaceURI(java.lang.String prefix)
- Description copied from class:
AbstractNamespaceContext
- Get namespace URI bound to a prefix in the current scope. The contract of
this method is the same as
NamespaceContext.getNamespaceURI(String), except that the
implementation is not required to handle the implicit namespace bindings.
- Specified by:
doGetNamespaceURI in class AbstractNamespaceContext
- Parameters:
prefix - prefix to look up
- Returns:
- namespace URI bound to prefix in the current scope
doGetPrefix
protected java.lang.String doGetPrefix(java.lang.String nsURI)
- Description copied from class:
AbstractNamespaceContext
- Get prefix bound to namespace URI in the current scope. The contract of
this method is the same as
NamespaceContext.getPrefix(String),
except that the implementation is not required to handle the implicit
namespace bindings.
- Specified by:
doGetPrefix in class AbstractNamespaceContext
- Parameters:
nsURI - URI of namespace to lookup
- Returns:
- prefix bound to namespace URI in current context
doGetPrefixes
protected java.util.Iterator doGetPrefixes(java.lang.String nsURI)
- Description copied from class:
AbstractNamespaceContext
- Get all prefixes bound to a namespace URI in the current scope. The
contract of this method is the same as
NamespaceContext.getPrefixes(String), except that the
implementation is not required to handle the implicit namespace bindings.
- Specified by:
doGetPrefixes in class AbstractNamespaceContext
- Parameters:
nsURI - URI of namespace to lookup
- Returns:
- iterator for all prefixes bound to the namespace URI in the
current scope
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.