public abstract class CharacterImpl extends LeafNode implements CharacterData, OMNodeEx
| Modifier and Type | Field and Description |
|---|---|
protected String |
textValue |
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIEDATTRIBUTE_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_NODECDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE| Modifier | Constructor and Description |
|---|---|
protected |
CharacterImpl(OMFactory factory) |
|
CharacterImpl(String value,
OMFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String value) |
void |
deleteData(int offset,
int count) |
String |
getData()
Returns the value of the data.
|
int |
getLength()
Returns the length of the string value.
|
void |
insertData(int offset,
String data)
Inserts a string at the specified offset.
|
void |
replaceData(int offset,
int count,
String data)
If the given data is null the content will be deleted.
|
void |
setData(String data)
Sets the text value of data.
|
String |
substringData(int offset,
int count)
Extracts a range of data from the node.
|
appendChild, build, discard, getBuilder, getChildNodes, getIParentNode, getNextOMSibling, getNextSibling, insertBefore, isComplete, lookupNamespaceURI, removeChild, replaceChild, setCompletebuildWithAttachments, clone, cloneNode, close, compareDocumentPosition, detach, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setParent, setParent, setPrefix, setPreviousOMSibling, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatagetNextOMSiblingIfAvailable, internalSerialize, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSiblingbuildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactoryprotected String textValue
protected CharacterImpl(OMFactory factory)
public void appendData(String value) throws DOMException
appendData in interface CharacterDataDOMExceptionpublic void deleteData(int offset,
int count)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic void replaceData(int offset,
int count,
String data)
throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic String getData() throws DOMException
getData in interface CharacterDataDOMExceptionpublic void insertData(int offset,
String data)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void setData(String data) throws DOMException
setData in interface CharacterDataDOMExceptionpublic String substringData(int offset, int count) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDataCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.