org.exist.dom
Class CharacterDataImpl

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

public class CharacterDataImpl
extends NodeImpl
implements org.w3c.dom.CharacterData

Description of the Class

Author:
Wolfgang Meier

Field Summary
protected  XMLString 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
CharacterDataImpl(short nodeType)
           
CharacterDataImpl(short nodeType, char[] data, int start, int howmany)
          Constructor for the CharacterDataImpl object
CharacterDataImpl(short nodeType, long gid)
          Constructor for the CharacterDataImpl object
CharacterDataImpl(short nodeType, long gid, java.lang.String data)
          Constructor for the CharacterDataImpl object
CharacterDataImpl(short nodeType, java.lang.String data)
          Constructor for the CharacterDataImpl 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 clear()
          Reset this object to its initial state.
 void deleteData(int offset, int count)
          Description of the Method
 java.lang.String getData()
          Gets the data attribute of the CharacterDataImpl object
 int getLength()
          Gets the length attribute of the CharacterDataImpl object
 java.lang.String getLowerCaseData()
           
 java.lang.String getNodeValue()
          Gets the nodeValue attribute of the CharacterDataImpl object
 XMLString getXMLString()
           
 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
 void setData(char[] data, int start, int howmany)
          Sets the data attribute of the CharacterDataImpl object
 void setData(java.lang.String data)
          Sets the data attribute of the CharacterDataImpl object
 void setData(XMLString data)
           
 java.lang.String substringData(int offset, int count)
          Description of the Method
 void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first, java.util.ArrayList prefixes)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 
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, serialize, setAttributes, setChildCount, setGID, setInternalAddress, setNodeName, setNodeNameRef, setNodeValue, setOwnerDocument, setPrefix, supports, toSAX, toString, updateChild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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, setNodeValue, setPrefix
 

Field Detail

cdata

protected XMLString cdata
Constructor Detail

CharacterDataImpl

public CharacterDataImpl(short nodeType)

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         long gid)
Constructor for the CharacterDataImpl object

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

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         long gid,
                         java.lang.String data)
Constructor for the CharacterDataImpl object

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

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         java.lang.String data)
Constructor for the CharacterDataImpl object

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

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         char[] data,
                         int start,
                         int howmany)
Constructor for the CharacterDataImpl object

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

clear

public void clear()
Description copied from class: NodeImpl
Reset this object to its initial state. Required by the parser to be able to reuse node objects.

Overrides:
clear in class NodeImpl

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
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

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
Parameters:
offset - Description of the Parameter
count - Description of the Parameter
Throws:
org.w3c.dom.DOMException - Description of the Exception

getData

public java.lang.String getData()
                         throws org.w3c.dom.DOMException
Gets the data attribute of the CharacterDataImpl object

Specified by:
getData in interface org.w3c.dom.CharacterData
Returns:
The data value
Throws:
org.w3c.dom.DOMException - Description of the Exception

getXMLString

public XMLString getXMLString()

getLowerCaseData

public java.lang.String getLowerCaseData()
                                  throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException

getLength

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

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

getNodeValue

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

Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class NodeImpl
Returns:
The nodeValue value
See Also:
Node.getNodeValue()

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
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
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

setData

public void setData(java.lang.String data)
             throws org.w3c.dom.DOMException
Sets the data attribute of the CharacterDataImpl object

Specified by:
setData in interface org.w3c.dom.CharacterData
Parameters:
data - The new data value
Throws:
org.w3c.dom.DOMException - Description of the Exception

setData

public void setData(XMLString data)
             throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException

setData

public void setData(char[] data,
                    int start,
                    int howmany)
             throws org.w3c.dom.DOMException
Sets the data attribute of the CharacterDataImpl object

Parameters:
data - The new data value
start - The new data value
howmany - The new data 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
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

toSAX

public void toSAX(org.xml.sax.ContentHandler contentHandler,
                  org.xml.sax.ext.LexicalHandler lexicalHandler,
                  boolean first,
                  java.util.ArrayList prefixes)
           throws org.xml.sax.SAXException
Description of the Method

Overrides:
toSAX in class NodeImpl
Parameters:
contentHandler - Description of the Parameter
lexicalHandler - Description of the Parameter
first - Description of the Parameter
prefixes - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

toString

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

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


Copyright (C) Wolfgang Meier. All rights reserved.