Class Root
java.lang.Object
org.castor.xmlctf.xmldiff.xml.nodes.XMLNode
org.castor.xmlctf.xmldiff.xml.nodes.ParentNode
org.castor.xmlctf.xmldiff.xml.nodes.Root
A representation of a Root node.
- Since:
- Castor 1.1
- Version:
- $Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $
- Author:
- Edward Kuns
-
Field Summary
Fields inherited from class XMLNode
ATTRIBUTE, ELEMENT, PROCESSING_INSTRUCTION, ROOT, TEXTModifier and TypeFieldDescriptionstatic final intNode is an attribute.static final intNode is an element.static final intNode is a processing instruction.static final intNode is a root node.static final intNode is a text node. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ParentNode
addChild, getChildIterator, getStringValue, hasChildNodesModifier and TypeMethodDescriptionvoidAdds the given child node to this ParentNode.Returns an Iterator over the list of child nodes.Returns the string value of this parent node.booleanReturns true if this node has any child nodes.Methods inherited from class XMLNode
getLocalName, getNamespaceURI, getNamespaceURI, getNodeLocation, getNodeType, getParentNode, getXPath, setNamespaceModifier and TypeMethodDescriptionReturns the local name of the node.Returns the namespace URI the node.getNamespaceURI(String prefix) Returns the namespace URI associated with this namespace prefix, as defined in the context of this node.Finds and returns the location of this node in its root's tree.final intReturns the type of this node.Returns the parent node, or null if the node has no parent.protected StringgetXPath()Returns the XPath from the root node to this node.voidsetNamespace(String namespace) Sets the namespace URI for this XMLNode.
-
Constructor Details
-
Root
public Root()Creates a new Root Node. Basically, a root node can contain only Elements and nothing else.
-
-
Method Details
-
getRootNode
Returns the root node, i.e.,this.- Overrides:
getRootNodein classXMLNode- Returns:
- The root node.
-