Class CharacterDataImpl

  • All Implemented Interfaces:
    java.io.Serializable, org.w3c.dom.CharacterData, org.w3c.dom.Node
    Direct Known Subclasses:
    AttributeValue

    public abstract class CharacterDataImpl
    extends NodeImpl
    implements org.w3c.dom.CharacterData
    See Also:
    Serialized Form
    • Constructor Detail

      • CharacterDataImpl

        public CharacterDataImpl()
    • Method Detail

      • getWholeText

        public java.lang.String getWholeText()
        Gathers all the CharacterData (Text or CDATA) objects that are siblings to this node and return the text data separated by the "\r\n" string.
        Returns:
        the gathered data of all the Text or CDATA objects on the current level. If this node does not belong to a document and has no parent then its own text data is returned.
      • appendData

        public void appendData​(java.lang.String moreData)
                        throws org.w3c.dom.DOMException
        Specified by:
        appendData in interface org.w3c.dom.CharacterData
        Parameters:
        moreData - - the data that will be appended to the current data
        Throws:
        org.w3c.dom.DOMException
      • deleteData

        public void deleteData​(int offset,
                               int count)
                        throws org.w3c.dom.DOMException
        Specified by:
        deleteData in interface org.w3c.dom.CharacterData
        Parameters:
        offset - - the position to start deleting from.
        count - - the number of characters to delete.
        Throws:
        org.w3c.dom.DOMException
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.w3c.dom.CharacterData
        Returns:
        the length of the text data of this CharacterData object, if the data is null then 0 is returned;
      • insertData

        public void insertData​(int offset,
                               java.lang.String data)
                        throws org.w3c.dom.DOMException
        Specified by:
        insertData in interface org.w3c.dom.CharacterData
        Parameters:
        offset - - the offset from the start at which to begin the inserting.
        data - - the data to be inserted.
        Throws:
        org.w3c.dom.DOMException
      • replaceData

        public void replaceData​(int offset,
                                int count,
                                java.lang.String data)
                         throws org.w3c.dom.DOMException
        Specified by:
        replaceData in interface org.w3c.dom.CharacterData
        Parameters:
        offset - - the offset from the start at which to begin the replacing.
        count - - the number of characters to be removed.z
        data - - the data to be inserted.
        Throws:
        org.w3c.dom.DOMException
      • substringData

        public java.lang.String substringData​(int offset,
                                              int count)
                                       throws org.w3c.dom.DOMException
        Specified by:
        substringData in interface org.w3c.dom.CharacterData
        Parameters:
        offset - - the offset from the start at which to begin retrieving.
        count - - the number of chars to return
        Returns:
        return the part of the data identified by the parameters, or null if this CharacterData object has no data.
        Throws:
        org.w3c.dom.DOMException
      • getNodeValue

        public java.lang.String getNodeValue()
                                      throws org.w3c.dom.DOMException
        Specified by:
        getNodeValue in interface org.w3c.dom.Node
        Throws:
        org.w3c.dom.DOMException
      • setNodeValue

        public void setNodeValue​(java.lang.String nodeValue)
                          throws org.w3c.dom.DOMException
        Specified by:
        setNodeValue in interface org.w3c.dom.Node
        Throws:
        org.w3c.dom.DOMException
      • isElementContentWhitespace

        public boolean isElementContentWhitespace()
        not implemented
        Returns:
        false
      • replaceWholeText

        public org.w3c.dom.Text replaceWholeText​(java.lang.String arg0)
                                          throws org.w3c.dom.DOMException
        not implemented
        Returns:
        null
        Throws:
        org.w3c.dom.DOMException
      • splitText

        public org.w3c.dom.Text splitText​(int arg0)
                                   throws org.w3c.dom.DOMException
        not implemented
        Returns:
        null
        Throws:
        org.w3c.dom.DOMException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object