Class GenericText

  • All Implemented Interfaces:
    java.io.Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, org.w3c.dom.CharacterData, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.Text

    public class GenericText
    extends AbstractText
    This class provides a generic implementation of the Text interface.
    Version:
    $Id: GenericText.java 1733416 2016-03-03 07:07:13Z gadams $
    See Also:
    Serialized Form
    • Field Detail

      • readonly

        protected boolean readonly
        Is this element immutable?
    • Constructor Detail

      • GenericText

        protected GenericText()
        Creates a new uninitialized Text object.
      • GenericText

        public GenericText​(java.lang.String value,
                           AbstractDocument owner)
        Creates a new Text object.
    • Method Detail

      • getNodeName

        public java.lang.String getNodeName()
        DOM: Implements Node.getNodeName().
        Returns:
        getNodeName().
      • getNodeType

        public short getNodeType()
        DOM: Implements Node.getNodeType().
        Returns:
        Node.TEXT_NODE
      • isReadonly

        public boolean isReadonly()
        Tests whether this node is readonly.
      • setReadonly

        public void setReadonly​(boolean v)
        Sets this node readonly attribute.
      • createTextNode

        protected org.w3c.dom.Text createTextNode​(java.lang.String text)
        Creates a text node of the current type.
        Specified by:
        createTextNode in class AbstractText
      • newNode

        protected org.w3c.dom.Node newNode()
        Returns a new uninitialized instance of this object's class.
        Specified by:
        newNode in class AbstractNode