Class CommentImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.CharacterData, org.w3c.dom.Comment, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList
    Direct Known Subclasses:
    DeferredCommentImpl

    public class CommentImpl
    extends CharacterDataImpl
    implements org.w3c.dom.CharacterData, org.w3c.dom.Comment
    Represents an XML (or HTML) comment.

    INTERNAL:

    Usage of this class is not supported. It may be altered or removed at any time.
    Since:
    PR-DOM-Level-1-19980818.
    Version:
    $Id: CommentImpl.java 447266 2006-09-18 05:57:49Z mrglavas $
    See Also:
    Serialized Form
    • Constructor Detail

      • CommentImpl

        public CommentImpl​(CoreDocumentImpl ownerDoc,
                           java.lang.String data)
        Factory constructor.
    • Method Detail

      • 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.
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Specified by:
        getNodeType in class NodeImpl
      • getNodeName

        public java.lang.String getNodeName()
        Returns the node name.
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Specified by:
        getNodeName in class NodeImpl