All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.xmlOnline.tree.Comment

java.lang.Object
   |
   +----w3c.xmlOnline.tree.Node
           |
           +----w3c.xmlOnline.tree.Comment

public class Comment
extends Node
A class that represents a comment node in an XML tree. The comment is a single string, excluding the delimiters <!-- and -->.

Version:
$Id: w3c.xmlOnline.tree.Comment.html,v 1.7 1997/06/09 22:25:36 bbos Exp $
Author:
Bert Bos

Constructor Index

 o Comment(Node, String, int)
Create a new XML Comment node, given a comment string.

Method Index

 o data()
Return the comment string.
 o dumpTree(PrintStream)
A method to write out the content of the node in correct XML synyax: <!--...-->

Constructors

 o Comment
 public Comment(Node parent,
                String s,
                int nr)
Create a new XML Comment node, given a comment string.

Parameters:
parent - the parent of the node
s - the comment text
nr - the sequence number of the node in the tree
Returns:
the new Comment node

Methods

 o data
 public String data()
Return the comment string.

Returns:
the comment string
 o dumpTree
 public void dumpTree(PrintStream out)
A method to write out the content of the node in correct XML synyax: <!--...-->

Parameters:
out - the PrintStream to write on
Overrides:
dumpTree in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index