|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.xmlctf.xmldiff.xml.nodes.XMLNode
public abstract class XMLNode
The base node for all XMLNode types.
Field Summary | |
---|---|
static int |
ATTRIBUTE
Node is an attribute. |
static int |
ELEMENT
Node is an element. |
static int |
PROCESSING_INSTRUCTION
Node is a processing instruction. |
static int |
ROOT
Node is a root node. |
static int |
TEXT
Node is a text node. |
Method Summary | |
---|---|
java.lang.String |
getLocalName()
Returns the local name of the node. |
java.lang.String |
getNamespaceURI()
Returns the namespace URI the node. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI associated with this namespace prefix, as defined in the context of this node. |
java.lang.String |
getNodeLocation()
Finds and returns the location of this node in its root's tree. |
int |
getNodeType()
Returns the type of this node. |
ParentNode |
getParentNode()
Returns the parent node, or null if the node has no parent. |
XMLNode |
getRootNode()
Returns the root node. |
abstract java.lang.String |
getStringValue()
Returns the string value of the node. |
protected java.lang.String |
getXPath()
Returns the XPath from the root node to this node. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace URI for this XMLNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROOT
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int TEXT
public static final int PROCESSING_INSTRUCTION
Method Detail |
---|
public final int getNodeType()
public java.lang.String getLocalName()
public java.lang.String getNamespaceURI()
public ParentNode getParentNode()
public XMLNode getRootNode()
public abstract java.lang.String getStringValue()
public java.lang.String getNamespaceURI(java.lang.String prefix)
prefix
- The namespace prefix
public void setNamespace(java.lang.String namespace)
namespace
- the Namespace URIpublic java.lang.String getNodeLocation()
protected java.lang.String getXPath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |