|
||||||||
| 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
org.castor.xmlctf.xmldiff.xml.nodes.ParentNode
public abstract class ParentNode
The base object for both Element and RootNode. The children of a ParentNode can be any type of XMLNode.
| Field Summary |
|---|
| Fields inherited from class org.castor.xmlctf.xmldiff.xml.nodes.XMLNode |
|---|
ATTRIBUTE, ELEMENT, PROCESSING_INSTRUCTION, ROOT, TEXT |
| Constructor Summary | |
|---|---|
ParentNode(java.lang.String namespace,
java.lang.String localName,
int nodeType)
Creates a new ParentNode. |
|
| Method Summary | |
|---|---|
void |
addChild(XMLNode node)
Adds the given child node to this ParentNode. |
java.util.Iterator |
getChildIterator()
Returns an Iterator over the list of child nodes. |
java.lang.String |
getStringValue()
Returns the string value of this parent node. |
boolean |
hasChildNodes()
Returns true if this node has any child nodes. |
| Methods inherited from class org.castor.xmlctf.xmldiff.xml.nodes.XMLNode |
|---|
getLocalName, getNamespaceURI, getNamespaceURI, getNodeLocation, getNodeType, getParentNode, getRootNode, getXPath, setNamespace, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ParentNode(java.lang.String namespace,
java.lang.String localName,
int nodeType)
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| Method Detail |
|---|
public java.util.Iterator getChildIterator()
public boolean hasChildNodes()
public java.lang.String getStringValue()
getStringValue in class XMLNodepublic void addChild(XMLNode node)
node - the child node to add
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||