public abstract class CharacterImpl extends ChildNode implements CharacterData
| Modifier and Type | Field and Description |
|---|---|
protected String |
textValue |
nextSibling, parentNode, previousSiblingbuilder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, 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_NODEDTD_NODE, PI_NODE, SPACE_NODE| Modifier | Constructor and Description |
|---|---|
|
CharacterImpl(DocumentImpl ownerNode,
OMFactory factory) |
|
CharacterImpl(DocumentImpl ownerNode,
String value,
OMFactory factory) |
protected |
CharacterImpl(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.
|
cloneNode, detach, discard, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSiblingappendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, setPrefix, 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, setUserDatainternalSerialize, setTypeprotected String textValue
protected CharacterImpl(OMFactory factory)
public CharacterImpl(DocumentImpl ownerNode, OMFactory factory)
ownerNode - public CharacterImpl(DocumentImpl ownerNode, String value, 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 CharacterDatagetLength in interface NodeListgetLength in class NodeImplParentNodeCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.