Package com.ibm.di.entry
Class CharacterDataImpl
- java.lang.Object
-
- com.ibm.di.entry.NodeImpl
-
- com.ibm.di.entry.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
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description CharacterDataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendData(java.lang.String moreData)
void
deleteData(int offset, int count)
int
getLength()
java.lang.String
getNodeValue()
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.void
insertData(int offset, java.lang.String data)
boolean
isElementContentWhitespace()
not implementedvoid
replaceData(int offset, int count, java.lang.String data)
org.w3c.dom.Text
replaceWholeText(java.lang.String arg0)
not implementedvoid
setNodeValue(java.lang.String nodeValue)
org.w3c.dom.Text
splitText(int arg0)
not implementedjava.lang.String
substringData(int offset, int count)
java.lang.String
toString()
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.w3c.dom.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:
org.w3c.dom.DOMException
-
substringData
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMException
- Specified by:
substringData
in interfaceorg.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 interfaceorg.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 interfaceorg.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 classjava.lang.Object
-
-