com.ibm.di.entry
Class CharacterDataImpl
java.lang.Object
com.ibm.di.entry.NodeImpl
com.ibm.di.entry.CharacterDataImpl
- All Implemented Interfaces:
- Serializable, CharacterData, Node
- Direct Known Subclasses:
- AttributeValue
public abstract class CharacterDataImpl
- extends NodeImpl
- implements CharacterData
- See Also:
- Serialized Form
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Methods inherited from class com.ibm.di.entry.NodeImpl |
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalLookupPrefix, internalNSLookup, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setTextContent, setUserData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
CharacterDataImpl
public CharacterDataImpl()
getWholeText
public 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(String moreData)
throws DOMException
- Specified by:
appendData
in interface CharacterData
- Parameters:
moreData
- - the data that will be appended to the current data
- Throws:
DOMException
deleteData
public void deleteData(int offset,
int count)
throws DOMException
- Specified by:
deleteData
in interface CharacterData
- Parameters:
offset
- - the position to start deleting from.count
- - the number of characters to delete.
- Throws:
DOMException
getLength
public int getLength()
- Specified by:
getLength
in interface 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,
String data)
throws DOMException
- Specified by:
insertData
in interface CharacterData
- Parameters:
offset
- - the offset from the start at which to begin the inserting.data
- - the data to be inserted.
- Throws:
DOMException
replaceData
public void replaceData(int offset,
int count,
String data)
throws DOMException
- Specified by:
replaceData
in interface CharacterData
- Parameters:
offset
- - the offset from the start at which to begin the replacing.count
- - the number of characters to be removed.zdata
- - the data to be inserted.
- Throws:
DOMException
substringData
public String substringData(int offset,
int count)
throws DOMException
- Specified by:
substringData
in interface 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:
DOMException
getNodeValue
public String getNodeValue()
throws DOMException
- Specified by:
getNodeValue
in interface Node
- Throws:
DOMException
setNodeValue
public void setNodeValue(String nodeValue)
throws DOMException
- Specified by:
setNodeValue
in interface Node
- Throws:
DOMException
isElementContentWhitespace
public boolean isElementContentWhitespace()
- not implemented
- Returns:
- false
replaceWholeText
public Text replaceWholeText(String arg0)
throws DOMException
- not implemented
- Returns:
- null
- Throws:
DOMException
splitText
public Text splitText(int arg0)
throws DOMException
- not implemented
- Returns:
- null
- Throws:
DOMException
toString
public String toString()
- Overrides:
toString
in class Object