Package cdc.util.data

Class Comment

  • All Implemented Interfaces:
    Child, Leaf, Node

    public final class Comment
    extends AbstractContentNode
    Comment node.

    It has a text content and can be attached to a Document or Element.

    Author:
    Damien Carbonne
    • Constructor Detail

      • Comment

        public Comment()
      • Comment

        public Comment​(Parent parent)
      • Comment

        public Comment​(String content)
      • Comment

        public Comment​(Parent parent,
                       String content)
      • Comment

        public Comment​(Comment other)
    • Method Detail

      • getType

        public NodeType getType()
        Returns:
        The node type.
      • clone

        public Comment clone​(boolean recurse)
        Description copied from interface: Node
        Return a clone of this node.
        Specified by:
        clone in interface Child
        Specified by:
        clone in interface Node
        Specified by:
        clone in class AbstractChild
        Parameters:
        recurse - If true, also clone children nodes.
        Returns:
        A clone of this node, and optionally its children.
      • getQName

        public String getQName()
        Returns:
        A string representation of this node. May be used for debug.