org.jbind.xml.dom3.core
Class DomCharacterData

java.lang.Object
  extended byorg.jbind.xml.dom3.core.DomObject
      extended byorg.jbind.xml.dom3.core.DomNode
          extended byorg.jbind.xml.dom3.core.DomNonAttrOrElm
              extended byorg.jbind.xml.dom3.core.DomCharacterData
All Implemented Interfaces:
org.w3c.dom.CharacterData, IDomCharacterData, IDomNode, IDomObject, IHasLocation, org.w3c.dom.Node
Direct Known Subclasses:
DomComment, DomText

public abstract class DomCharacterData
extends DomNonAttrOrElm
implements IDomCharacterData


Field Summary
 
Fields inherited from class org.jbind.xml.dom3.core.DomNode
myChildNodes, myParentNode
 
Fields inherited from class org.jbind.xml.dom3.core.DomObject
myOwnerDocument
 
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
protected DomCharacterData(IDomCharacterData aDomCharacterData, boolean aDeep)
           
protected DomCharacterData(IDomDocument aDomDocument)
          Constructor for sub classes that initialize the data buffer lazily.
  DomCharacterData(IDomDocument aDomDocument, java.lang.String aString)
           
 
Method Summary
 void appendData(java.lang.String arg)
           
 void deleteData(int offset)
           
 void deleteData(int offset, int count)
           
protected  IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep)
          Hook method for cloning the child nodes.
 java.lang.String getData()
           
protected  StrBuffer getDataBuffer()
           
 int getLength()
           
 java.lang.String getNodeValue()
           
 java.lang.String getTextContent()
           
 void insertData(int offset, java.lang.String arg)
           
 void replaceData(int offset, int count, java.lang.String arg)
           
 void setData(java.lang.String data)
           
protected  void setDataBuffer(StrBuffer aDataBuffer)
           
 void setNodeValue(java.lang.String nodeValue)
           
 void setTextContent(ITextContentProvider aTextContentProvider)
           
 void setTextContent(java.lang.String aString)
           
 java.lang.String substringData(int offset)
           
 java.lang.String substringData(int offset, int count)
           
 
Methods inherited from class org.jbind.xml.dom3.core.DomNonAttrOrElm
getAttributes, getLocalName, getNamespaceURI, getPrefix, hasAttributes, isDefault, isNil, setPrefix
 
Methods inherited from class org.jbind.xml.dom3.core.DomNode
accept, addElement, addElement, addText, appendChild, collectTextContent, collectTextContent, compareTreePosition, doAfterAccept, doBeforeAccept, getAncestor, getBaseURI, getChild, getChildByClass, getChildNodes, getFirstChild, getInterface, getLastChild, getLocation, getNamespaceForPrefix, getNbChildren, getNextSibling, getNonDefaultedNbChildren, getParentImpl, getParentNode, getPrefixForNamespace, getPrefixToNamespaceMapping, getPreviousSibling, getUserData, hasChildNodes, insertAfter, insertBefore, isEqualNode, isSameNode, isSupported, iterChildren, lookupNamespacePrefix, lookupNamespaceURI, normalize, removeChild, replaceChild, restoreTextContent, saveTextContent, setChildNodes, setLocation, setPrefixToNamespaceMapping, visitChildren
 
Methods inherited from class org.jbind.xml.dom3.core.DomObject
checkMutability, checkOwnerDocument, getOwnerDocument, isReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, setPrefix
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomNode
accept, insertAfter, lookupNamespaceURI, setLocation, setPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomObject
getOwnerDocument, isReadOnly
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Constructor Detail

DomCharacterData

protected DomCharacterData(IDomDocument aDomDocument)
Constructor for sub classes that initialize the data buffer lazily.


DomCharacterData

public DomCharacterData(IDomDocument aDomDocument,
                        java.lang.String aString)

DomCharacterData

protected DomCharacterData(IDomCharacterData aDomCharacterData,
                           boolean aDeep)
Method Detail

getDataBuffer

protected StrBuffer getDataBuffer()

setDataBuffer

protected void setDataBuffer(StrBuffer aDataBuffer)

getData

public java.lang.String getData()
Specified by:
getData in interface org.w3c.dom.CharacterData

appendData

public void appendData(java.lang.String arg)
                throws DomException
Specified by:
appendData in interface org.w3c.dom.CharacterData
Throws:
DomException

deleteData

public void deleteData(int offset,
                       int count)
                throws DomException
Specified by:
deleteData in interface org.w3c.dom.CharacterData
Throws:
DomException

deleteData

public void deleteData(int offset)
                throws DomException
Specified by:
deleteData in interface IDomCharacterData
Throws:
DomException

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.CharacterData

getNodeValue

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

insertData

public void insertData(int offset,
                       java.lang.String arg)
                throws DomException
Specified by:
insertData in interface org.w3c.dom.CharacterData
Throws:
DomException

replaceData

public void replaceData(int offset,
                        int count,
                        java.lang.String arg)
                 throws DomException
Specified by:
replaceData in interface org.w3c.dom.CharacterData
Throws:
DomException

setData

public void setData(java.lang.String data)
             throws DomException
Specified by:
setData in interface org.w3c.dom.CharacterData
Throws:
DomException

setNodeValue

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

substringData

public java.lang.String substringData(int offset,
                                      int count)
                               throws DomException
Specified by:
substringData in interface org.w3c.dom.CharacterData
Throws:
DomException

doCloneChildNodes

protected IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList,
                                         boolean aDeep)
Description copied from class: DomNode
Hook method for cloning the child nodes.

Specified by:
doCloneChildNodes in class DomNode

substringData

public java.lang.String substringData(int offset)
                               throws DomException
Specified by:
substringData in interface IDomCharacterData
Throws:
DomException

getTextContent

public java.lang.String getTextContent()
Specified by:
getTextContent in interface IDomNode

setTextContent

public void setTextContent(ITextContentProvider aTextContentProvider)
Specified by:
setTextContent in interface IDomNode
Overrides:
setTextContent in class DomNode

setTextContent

public void setTextContent(java.lang.String aString)
Specified by:
setTextContent in interface IDomNode
Overrides:
setTextContent in class DomNode