public class TextNode extends BasicNode
Constructor and Description |
---|
TextNode(long nodeid,
long parentnodeid,
java.lang.String nodedata)
Construct a new TextNode instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNodeData()
Get the node data as a string value
|
void |
setNodeData(java.lang.String nodedata)
Set the node data to the given string
|
java.lang.String |
toString()
String representation of this text node
|
addChildNode, getAttribute, getAttributes, getChildren, getDocID, getNamespace, getNodeID, getNodeIndex, getNodeType, getParentID, getRootNodeID, getTagName, incChildNum, setAttribute, setDocID, setNamespace, setNodeID, setNodeIndex, setNodeType, setParentID, setRootNodeID, setTagName
public TextNode(long nodeid, long parentnodeid, java.lang.String nodedata)
nodeid
- the element_id for the node to be createdparentnodeid
- the id of the parent nodenodedata
- the text of the nodenodetype
- the type of the nodepublic void setNodeData(java.lang.String nodedata)
public java.lang.String getNodeData()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020 Regents of the University of California. All Rights Reserved.