org.jaxen
public class SimpleNamespaceContext extends Object implements NamespaceContext, Serializable
| Field Summary | |
|---|---|
| Map | namespaces |
| static long | serialVersionUID |
| Constructor Summary | |
|---|---|
| SimpleNamespaceContext()
Creates a new empty namespace context. | |
| SimpleNamespaceContext(Map namespaces)
Creates a new namespace context pre-populated with the specified bindings.
| |
| Method Summary | |
|---|---|
| void | addElementNamespaces(Navigator nav, Object element)
Adds all the namespace declarations that are in scope on the given
element. |
| void | addNamespace(String prefix, String URI)
Binds a prefix to a URI in this context.
|
| String | translateNamespacePrefixToUri(String prefix) |
Parameters: namespaces the initial namespace bindings in scope. The keys in this must be strings containing the prefixes and the values are strings containing the namespace URIs.
Throws: NullPointerException if the argument is null ClassCastException if any keys or values in the map are not strings
<xsl:if test="condition/xpath/expression">.
Parameters: nav the navigator for use in conjunction with
element element the element to copy the namespaces from
Throws: UnsupportedAxisException if the navigator does not support the namespace axis
Parameters: prefix the namespace prefix URI the namespace URI