org.jaxen.jdom
Class XPathNamespace
public
class
XPathNamespace
extends Object
Wrapper for JDOM namespace nodes to give them a parent, as required
by the XPath data model.
Author: Erwin Bolwidt
Constructor Summary |
| XPathNamespace(Namespace jdomNamespace) Creates a namespace-node wrapper for a namespace node that hasn't been
assigned to an element yet. |
| XPathNamespace(Element jdomElement, Namespace jdomNamespace) Creates a namespace-node wrapper for a namespace node that is assigned
to the given JDOM element. |
Method Summary |
Element | getJDOMElement() Returns the JDOM element from which this namespace node has been
retrieved. |
Namespace | getJDOMNamespace() Returns the JDOM namespace object of this namespace node; the JDOM
namespace object contains the prefix and URI of the namespace. |
void | setJDOMElement(Element jdomElement) Sets or changes the element to which this namespace node is assigned. |
String | toString() |
private Element jdomElement
private Namespace jdomNamespace
public XPathNamespace(Namespace jdomNamespace)
Creates a namespace-node wrapper for a namespace node that hasn't been
assigned to an element yet.
public XPathNamespace(Element jdomElement, Namespace jdomNamespace)
Creates a namespace-node wrapper for a namespace node that is assigned
to the given JDOM element.
public Element getJDOMElement()
Returns the JDOM element from which this namespace node has been
retrieved. The result may be null when the namespace node has not yet
been assigned to an element.
public Namespace getJDOMNamespace()
Returns the JDOM namespace object of this namespace node; the JDOM
namespace object contains the prefix and URI of the namespace.
public void setJDOMElement(Element jdomElement)
Sets or changes the element to which this namespace node is assigned.
public String toString()