org.exolab.adaptx.xslt.dom

Class Comment

public class Comment extends BaseNode

A class representing a Comment node

Version: $Revision: 3741 $ $Date: 2003-05-13 04:02:34 -0400 (Tue, 13 May 2003) $

Author: Keith Visco

Constructor Summary
Comment()
Creates a new empty Comment
Comment(String value)
Creates a new Comment with the given message
Method Summary
intgetNodeType()
Returns the type of this node.
StringgetStringValue()
Returns the string value of the node.
voidsetValue(String value)
Sets the value for this XPathNode

Constructor Detail

Comment

public Comment()
Creates a new empty Comment

Comment

public Comment(String value)
Creates a new Comment with the given message

Parameters: value the text value of this Comment

Method Detail

getNodeType

public int getNodeType()
Returns the type of this node.

Returns: The type of this node

getStringValue

public String getStringValue()
Returns the string value of the node. The string value of a text node or an attribute node is it's text value. The string value of an element or a root node is the concatenation of the string value of all its child nodes. The string value of a namespace node is its namespace URI. The string value of a processing instruction is the instruction, and the string value of a comment is the comment text.

Returns: The string value of the node

setValue

public void setValue(String value)
Sets the value for this XPathNode