public abstract class CharacterImpl extends ChildNode implements CharacterData
Modifier and Type | Field and Description |
---|---|
protected String |
textValue |
nextSibling, parentNode, previousSibling
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, 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
DTD_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, setPreviousOMSibling
appendChild, 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, 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
internalSerialize, setType
protected 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 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
getLength
in interface NodeList
getLength
in class NodeImpl
ParentNode
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.