public class XPathNamespace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Element |
jdomElement |
private Namespace |
jdomNamespace |
Constructor and Description |
---|
XPathNamespace(Element jdomElement,
Namespace jdomNamespace)
Creates a namespace-node wrapper for a namespace node that is assigned
to the given JDOM element.
|
XPathNamespace(Namespace jdomNamespace)
Creates a namespace-node wrapper for a namespace node that hasn't been
assigned to an element yet.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
public XPathNamespace(Namespace jdomNamespace)
public XPathNamespace(Element jdomElement, Namespace jdomNamespace)
public Element getJDOMElement()
public void setJDOMElement(Element jdomElement)
public Namespace getJDOMNamespace()
public java.lang.String toString()
toString
in class java.lang.Object