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
    • 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.
      • isCData

        public boolean isCData()
      • isStandard

        public boolean isStandard()
      • isIgnorable

        public boolean isIgnorable()
      • setParent

        public Text setParent​(Parent parent)
        Description copied from interface: Child
        Sets or changes the parent of this child.
        Specified by:
        setParent in interface Child
        Overrides:
        setParent in class AbstractChild
        Parameters:
        parent - The new parent. May be null.
        Returns:
        This object.
      • setIndex

        public Text setIndex​(int to)
        Description copied from interface: Child
        Set the index of this child.
        Parameters:
        to - The new index of this child.
        Returns:
        This object.