Package org.custommonkey.xmlunit
Interface NamespaceContext
- All Known Implementing Classes:
SimpleNamespaceContext
public interface NamespaceContext
Interface used by XpathEngine in order to map prefixes to namespace URIs.
This is modelled after javax.xml.namespace.NamespaceContext but reduced to our needs.
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) Obtain the URI for a given prefix.Get all prefixes of this context.
-
Method Details
-
getNamespaceURI
Obtain the URI for a given prefix.Unlike the method in javax.xml.namespace.NamespaceContext doesn't have to implement any special handling for predefined prefix values.
- Parameters:
prefix
- prefix to look up- Returns:
- null if the prefix is unknown.
-
getPrefixes
Iterator getPrefixes()Get all prefixes of this context.- Returns:
- all prefixes of this context
-