edu.ucsb.nceas.metacat
Class TextNode

java.lang.Object
  |
  +--edu.ucsb.nceas.metacat.BasicNode
        |
        +--edu.ucsb.nceas.metacat.TextNode

public class TextNode
extends BasicNode

A Class that represents an XML Text node and its contents,


Constructor Summary
TextNode(long nodeid, long parentnodeid, java.lang.String nodedata, java.lang.String nodetype)
          Construct a new TextNode instance
 
Method Summary
 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
 
Methods inherited from class edu.ucsb.nceas.metacat.BasicNode
addChildNode, getAttribute, getAttributes, getChildren, getDocID, getNodeID, getNodeIndex, getNodeType, getParentID, getRootNodeID, getTagName, incChildNum, setAttribute, setDocID, setNodeID, setNodeIndex, setNodeType, setParentID, setRootNodeID, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextNode

public TextNode(long nodeid,
                long parentnodeid,
                java.lang.String nodedata,
                java.lang.String nodetype)
Construct a new TextNode instance
Parameters:
nodeid - the element_id for the node to be created
parentnodeid - the id of the parent node
nodedata - the text of the node
nodetype - the type of the node
Method Detail

setNodeData

public void setNodeData(java.lang.String nodedata)
Set the node data to the given string

getNodeData

public java.lang.String getNodeData()
Get the node data as a string value

toString

public java.lang.String toString()
String representation of this text node
Overrides:
toString in class java.lang.Object


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.