public abstract class CharacterImpl extends LeafNode implements CharacterData, OMNodeEx
Modifier and Type | Field and Description |
---|---|
protected String |
textValue |
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIED
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
CDATA_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, setComplete
buildWithAttachments, 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, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, 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, setUserData
getNextOMSiblingIfAvailable, internalSerialize, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
protected String textValue
protected CharacterImpl(OMFactory factory)
public void appendData(String value) throws DOMException
appendData
in interface CharacterData
DOMException
public void deleteData(int offset, int count) throws DOMException
deleteData
in interface CharacterData
DOMException
public void replaceData(int offset, int count, String data) throws DOMException
replaceData
in interface CharacterData
DOMException
public String getData() throws DOMException
getData
in interface CharacterData
DOMException
public void insertData(int offset, String data) throws DOMException
insertData
in interface CharacterData
DOMException
public void setData(String data) throws DOMException
setData
in interface CharacterData
DOMException
public String substringData(int offset, int count) throws DOMException
substringData
in interface CharacterData
DOMException
public int getLength()
getLength
in interface CharacterData
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.