Package org.apache.axiom.util.namespace
Class AbstractNamespaceContext
java.lang.Object
org.apache.axiom.util.namespace.AbstractNamespaceContext
- All Implemented Interfaces:
NamespaceContext
- Direct Known Subclasses:
MapBasedNamespaceContext,ScopedNamespaceContext
Partial
NamespaceContext implementation that takes care of the
implicit namespace bindings (for the xml and xmlns
prefixes) defined in the NamespaceContext Javadoc.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringdoGetNamespaceURI(String prefix) Get namespace URI bound to a prefix in the current scope.protected abstract StringdoGetPrefix(String namespaceURI) Get prefix bound to namespace URI in the current scope.doGetPrefixes(String namespaceURI) Get all prefixes bound to a namespace URI in the current scope.final StringgetNamespaceURI(String prefix) final StringgetPrefixes(String namespaceURI)
-
Constructor Details
-
AbstractNamespaceContext
public AbstractNamespaceContext()
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
doGetNamespaceURI
Get namespace URI bound to a prefix in the current scope. The contract of this method is the same asNamespaceContext.getNamespaceURI(String), except that the implementation is not required to handle the implicit namespace bindings.- Parameters:
prefix- prefix to look up- Returns:
- namespace URI bound to prefix in the current scope
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
doGetPrefix
Get prefix bound to namespace URI in the current scope. The contract of this method is the same asNamespaceContext.getPrefix(String), except that the implementation is not required to handle the implicit namespace bindings.- Parameters:
namespaceURI- URI of namespace to lookup- Returns:
- prefix bound to namespace URI in current context
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-
doGetPrefixes
Get all prefixes bound to a namespace URI in the current scope. The contract of this method is the same asNamespaceContext.getPrefixes(String), except that the implementation is not required to handle the implicit namespace bindings.- Parameters:
namespaceURI- URI of namespace to lookup- Returns:
- iterator for all prefixes bound to the namespace URI in the current scope
-