public class MbNamespaceBindings
extends java.lang.Object
evaluateXPath()
.
The namespace bindings can also be applied to an MbXPath object using
setNamespaceBindings()
.Constructor and Description |
---|
MbNamespaceBindings() |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(java.lang.String prefix,
java.lang.String uri)
Adds a mapping between a namespace prefix and the full namespace URI.
|
void |
removeBinding(java.lang.String prefix)
Removes the currently assigned prefix to namespace URI mapping.
|
void |
setDefaultNamespace(java.lang.String uri)
Sets the default namespace URI.
|
public void addBinding(java.lang.String prefix, java.lang.String uri)
prefix
- The prefix part of the qualified name.uri
- The namespace URI to which the prefix refers.public void removeBinding(java.lang.String prefix)
prefix
- The prefix to be removed.public void setDefaultNamespace(java.lang.String uri)
uri
- The default namespace URI.