Class CommentImpl

  • All Implemented Interfaces:
    java.lang.Cloneable, org.w3c.dom.CharacterData, org.w3c.dom.Comment, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList

    public class CommentImpl
    extends CharacterDataImpl
    implements org.w3c.dom.Comment
    Represents an XML (or HTML) comment.
    • Constructor Detail

      • CommentImpl

        public CommentImpl​(CoreDocumentImpl ownerDoc,
                           java.lang.String data)
        Factory constructor.
        Parameters:
        ownerDoc - the owner document
        data - the data
    • 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. 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()
        the name of this node.
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Specified by:
        getNodeName in class NodeImpl