gnu.xml.dom

Class DomComment

public class DomComment extends DomCharacterData implements Comment

"Comment" implementation. Comments hold data intended for direct consumption by people; programs should only use ProcessingInstruction nodes. Note that since SAX makes comment reporting optional, XML systems that rely on comments (such as by using this class) will often lose those comments at some point in the processing pipeline.

Version: $Date: 2001/11/20 04:53:46 $

Author: David Brownell

Constructor Summary
protected DomComment(Document owner, String value)
Constructs a comment node associated with the specified document and holding the specified data.
Method Summary
StringgetNodeName()
DOM L1 Returns the string "#comment".
shortgetNodeType()
DOM L1 Returns the constant COMMENT_NODE.

Constructor Detail

DomComment

protected DomComment(Document owner, String value)
Constructs a comment node associated with the specified document and holding the specified data.

This constructor should only be invoked by a Document as part of its createComment functionality, or through a subclass which is similarly used in a "Sub-DOM" style layer.

Method Detail

getNodeName

public final String getNodeName()
DOM L1 Returns the string "#comment".

getNodeType

public final short getNodeType()
DOM L1 Returns the constant COMMENT_NODE.

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.