Class Comment

    • Constructor Detail

      • Comment

        public Comment(String data,
                       Document doc)

        Initializes a new instance of the Comment class.

        data - The character data.
        doc - The document.
    • Method Detail

      • getNodeName

        public String getNodeName()

        The name of this node, depending on its type.

        Value: The name of the node.
        Specified by:
        getNodeName in class Node
      • getNodeType

        public int getNodeType()

        A code representing the type of the underlying object.

        Value: The type of the node.
        Specified by:
        getNodeType in class Node
      • getBogus

        public boolean getBogus()
      • setBogus

        public void setBogus(boolean value)
      • cloneNode

        public Node cloneNode(boolean deep)

        Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent (parentNode is null) and no user data.

        Specified by:
        cloneNode in class Node
        deep - if set to true [deep].
        Returns node