Package cdc.util.data

Class Text

  • All Implemented Interfaces:
    Child, Leaf, Node

    public final class Text
    extends AbstractContentNode
    Text node.

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

    Author:
    Damien Carbonne
    • Constructor Detail

      • Text

        public Text()
      • Text

        public Text​(Parent parent)
      • Text

        public Text​(String content)
      • Text

        public Text​(Text other)
    • Method Detail

      • getType

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

        public Text 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.
      • isIgnorable

        public boolean isIgnorable()