Package org.custommonkey.xmlunit
Interface NamespaceContext
-
- All Known Implementing Classes:
SimpleNamespaceContext
public interface NamespaceContextInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetNamespaceURI(String prefix)Obtain the URI for a given prefix.IteratorgetPrefixes()Get all prefixes of this context.
-
-
-
Method Detail
-
getNamespaceURI
String getNamespaceURI(String prefix)
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
-
-