Class Text

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.CharacterData, org.w3c.dom.Node, org.w3c.dom.Text, Item, Textual

    public class Text
    extends AbstractTextual
    implements org.w3c.dom.Text
    The iDOM Text.
    Author:
    tomyeh
    See Also:
    CData, Serialized Form
    • Constructor Detail

      • Text

        public Text​(java.lang.String text)
        Constructor.
      • Text

        public Text()
        Constructor.
    • Method Detail

      • isCoalesceable

        public final boolean isCoalesceable()
        Always returns true to denote it allows to be coalesced with its siblings with the same type (class).
        Specified by:
        isCoalesceable in interface Textual
        Overrides:
        isCoalesceable in class AbstractTextual
      • getName

        public final java.lang.String getName()
        Description copied from interface: Item
        Gets the name of the item. For vertices that support namespace (implements Namespaceable), it is the same as getTagName.
        Specified by:
        getName in interface Item
        See Also:
        Namespaceable.getTagName()
      • getNodeType

        public final short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node