org.castor.xmlctf.xmldiff.xml.nodes
Class ParentNode
public abstract class ParentNode
The base object for both Element and RootNode. The children of a ParentNode
can be any type of XMLNode.
$Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $
ParentNode(String namespace, String localName, int nodeType) - Creates a new ParentNode.
|
getLocalName , getNamespaceURI , getNamespaceURI , getNodeLocation , getNodeType , getParentNode , getRootNode , getStringValue , getXPath , setNamespace , setParent |
ParentNode
(package private) ParentNode(String namespace,
String localName,
int nodeType)
Creates a new ParentNode.
namespace
- the namespace URI for this node. (May be null.)localName
- the local-name of this node. (Cannot be null.)nodeType
- the node type being created
addChild
public void addChild(XMLNode node)
Adds the given child node to this ParentNode.
node
- the child node to add
getChildIterator
public Iterator getChildIterator()
Returns an Iterator over the list of child nodes.
- an Iterator over the list of child nodes.
getStringValue
public String getStringValue()
Returns the string value of this parent node. The string value is the
concatenation of the string value of all child nodes.
- getStringValue in interface XMLNode
- The string value of the node
hasChildNodes
public boolean hasChildNodes()
Returns true if this node has any child nodes.
- True if this node has any child nodes.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com