Class CommentImpl

All Implemented Interfaces:
Cloneable, CharacterData, Comment, EventTarget, Node, NodeList

public class CommentImpl extends CharacterDataImpl implements Comment
Represents an XML (or HTML) comment.
  • Constructor Details

    • CommentImpl

      public CommentImpl(CoreDocumentImpl ownerDoc, String data)
      Factory constructor.
      Parameters:
      ownerDoc - the owner document
      data - the data
  • Method Details

    • getNodeType

      public short getNodeType()
      A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface. A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.
      Specified by:
      getNodeType in interface Node
      Specified by:
      getNodeType in class NodeImpl
    • getNodeName

      public String getNodeName()
      the name of this node.
      Specified by:
      getNodeName in interface Node
      Specified by:
      getNodeName in class NodeImpl