All Packages Class Hierarchy This Package Previous Next Index
Class w3c.xmlOnline.tree.Data
java.lang.Object
|
+----w3c.xmlOnline.tree.Node
|
+----w3c.xmlOnline.tree.Data
- public class Data
- extends Node
A class that represents a text chunk in the XML tree.
On creation, the data is the empty string and new data
can be appended.
- Version:
- $Id: w3c.xmlOnline.tree.Data.html,v 1.7 1997/06/09 22:25:43 bbos Exp $
- Author:
- Bert Bos
-
Data(Node, String, int)
- Create a new Data node, given its parent Node.
-
addData(String)
- Add new data to the end of the content of this data node.
-
data()
- Return the data content of this node.
-
dumpTree(PrintStream)
- A method to write out the content of
the node in correct XML syntax.
Data
public Data(Node parent,
String data,
int nr)
- Create a new Data node, given its parent Node.
- Parameters:
- parent - the parent node
- data - the data content
- nr - the sequence number of the node in the tree
- Returns:
- the new Data node
addData
public Data addData(String s)
- Add new data to the end of the content of this data node.
- Parameters:
- s - the data to append
- Returns:
- this
data
public String data()
- Return the data content of this node.
- Returns:
- the data content of this node
dumpTree
public void dumpTree(PrintStream out)
- A method to write out the content of
the node in correct XML syntax.
- Parameters:
- out - the PrintStream to write on
- Overrides:
- dumpTree in class Node
All Packages Class Hierarchy This Package Previous Next Index