org.exist.dom
Class TextImpl

java.lang.Object
  extended byorg.exist.dom.NodeImpl
      extended byorg.exist.dom.CharacterDataImpl
          extended byorg.exist.dom.TextImpl
All Implemented Interfaces:
org.w3c.dom.CharacterData, org.w3c.dom.Node, org.w3c.dom.Text

public class TextImpl
extends CharacterDataImpl
implements org.w3c.dom.Text

TextImpl.java

Author:
wolf

Field Summary
 
Fields inherited from class org.exist.dom.CharacterDataImpl
cdata
 
Fields inherited from class org.exist.dom.NodeImpl
attributes, gid, internalAddress, nodeName, nodeNameRef, nodeType, ownerDocument
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
TextImpl()
           
TextImpl(char[] data, int start, int howmany)
          Constructor for the TextImpl object
TextImpl(long gid)
          Constructor for the TextImpl object
TextImpl(long gid, java.lang.String data)
          Constructor for the TextImpl object
TextImpl(java.lang.String data)
          Constructor for the TextImpl object
 
Method Summary
 void appendData(char[] data, int start, int howmany)
          Description of the Method
 void appendData(java.lang.String arg)
          Description of the Method
 void deleteData(int offset, int count)
          Description of the Method
static NodeImpl deserialize(byte[] data, int start, int len)
           
 int getLength()
          Gets the length attribute of the TextImpl object
 java.lang.String getNodeValue()
          Gets the nodeValue attribute of the TextImpl object
 void insertData(int offset, java.lang.String arg)
          Description of the Method
 void replaceData(int offset, int count, java.lang.String arg)
          Description of the Method
 byte[] serialize()
          Description of the Method
 void setNodeValue(java.lang.String value)
          Sets the nodeValue attribute of the TextImpl object
 org.w3c.dom.Text splitText(int offset)
          Description of the Method
 java.lang.String substringData(int offset, int count)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 java.lang.String toString(boolean top)
          Description of the Method
 
Methods inherited from class org.exist.dom.CharacterDataImpl
clear, getData, getLowerCaseData, getXMLString, setData, setData, setData, toSAX
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, cloneNode, deserialize, equals, firstChildID, getAttributes, getAttributesCount, getBroker, getChildCount, getChildNodes, getFirstChild, getGID, getInternalAddress, getLastChild, getLastNode, getLastNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNameRef, getNodeType, getOwnerDocument, getParentGID, getParentNode, getPath, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertAfter, insertAfter, insertBefore, insertBefore, isSupported, lastChildID, normalize, removeChild, replaceChild, setAttributes, setChildCount, setGID, setInternalAddress, setNodeName, setNodeNameRef, setOwnerDocument, setPrefix, supports, toSAX, updateChild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.CharacterData
getData, setData
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix
 

Constructor Detail

TextImpl

public TextImpl()

TextImpl

public TextImpl(long gid)
Constructor for the TextImpl object

Parameters:
gid - Description of the Parameter

TextImpl

public TextImpl(java.lang.String data)
Constructor for the TextImpl object

Parameters:
data - Description of the Parameter

TextImpl

public TextImpl(long gid,
                java.lang.String data)
Constructor for the TextImpl object

Parameters:
gid - Description of the Parameter
data - Description of the Parameter

TextImpl

public TextImpl(char[] data,
                int start,
                int howmany)
Constructor for the TextImpl object

Parameters:
data - Description of the Parameter
start - Description of the Parameter
howmany - Description of the Parameter
Method Detail

deserialize

public static NodeImpl deserialize(byte[] data,
                                   int start,
                                   int len)

appendData

public void appendData(java.lang.String arg)
                throws org.w3c.dom.DOMException
Description of the Method

Specified by:
appendData in interface org.w3c.dom.CharacterData
Overrides:
appendData in class CharacterDataImpl
Parameters:
arg - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

appendData

public void appendData(char[] data,
                       int start,
                       int howmany)
                throws org.w3c.dom.DOMException
Description of the Method

Overrides:
appendData in class CharacterDataImpl
Parameters:
data - Description of the Parameter
start - Description of the Parameter
howmany - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

deleteData

public void deleteData(int offset,
                       int count)
                throws org.w3c.dom.DOMException
Description of the Method

Specified by:
deleteData in interface org.w3c.dom.CharacterData
Overrides:
deleteData in class CharacterDataImpl
Parameters:
offset - Description of the Parameter
count - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

getLength

public int getLength()
Gets the length attribute of the TextImpl object

Specified by:
getLength in interface org.w3c.dom.CharacterData
Overrides:
getLength in class CharacterDataImpl
Returns:
The length value

getNodeValue

public java.lang.String getNodeValue()
Gets the nodeValue attribute of the TextImpl object

Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class CharacterDataImpl
Returns:
The nodeValue value

insertData

public void insertData(int offset,
                       java.lang.String arg)
                throws org.w3c.dom.DOMException
Description of the Method

Specified by:
insertData in interface org.w3c.dom.CharacterData
Overrides:
insertData in class CharacterDataImpl
Parameters:
offset - Description of the Parameter
arg - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

replaceData

public void replaceData(int offset,
                        int count,
                        java.lang.String arg)
                 throws org.w3c.dom.DOMException
Description of the Method

Specified by:
replaceData in interface org.w3c.dom.CharacterData
Overrides:
replaceData in class CharacterDataImpl
Parameters:
offset - Description of the Parameter
count - Description of the Parameter
arg - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

serialize

public byte[] serialize()
Description of the Method

Overrides:
serialize in class NodeImpl
Returns:
Description of the Return Value

setNodeValue

public void setNodeValue(java.lang.String value)
                  throws org.w3c.dom.DOMException
Sets the nodeValue attribute of the TextImpl object

Specified by:
setNodeValue in interface org.w3c.dom.Node
Overrides:
setNodeValue in class NodeImpl
Parameters:
value - The new nodeValue value
Throws:
org.w3c.dom.DOMException - Description of the Exception

splitText

public org.w3c.dom.Text splitText(int offset)
                           throws org.w3c.dom.DOMException
Description of the Method

Specified by:
splitText in interface org.w3c.dom.Text
Parameters:
offset - Description of the Parameter
Returns:
Description of the Return Value
Throws:
org.w3c.dom.DOMException - Description of the Exception

substringData

public java.lang.String substringData(int offset,
                                      int count)
                               throws org.w3c.dom.DOMException
Description of the Method

Specified by:
substringData in interface org.w3c.dom.CharacterData
Overrides:
substringData in class CharacterDataImpl
Parameters:
offset - Description of the Parameter
count - Description of the Parameter
Returns:
Description of the Return Value
Throws:
org.w3c.dom.DOMException - Description of the Exception

toString

public java.lang.String toString(boolean top)
Description of the Method

Overrides:
toString in class NodeImpl
Parameters:
top - Description of the Parameter
Returns:
Description of the Return Value

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class CharacterDataImpl
Returns:
Description of the Return Value


Copyright (C) Wolfgang Meier. All rights reserved.