public abstract class DOMCharacterData extends DOMNode implements CharacterData
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUEATTRIBUTE_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 and Description |
|---|
DOMCharacterData(int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String data) |
void |
deleteData(int offset,
int count) |
boolean |
endsWithNewLine()
If data ends with a new line character.
|
String |
getData() |
String |
getDelimiter() |
int |
getEndContent() |
int |
getLength() |
String |
getNodeValue() |
String |
getNormalizedData() |
int |
getStartContent() |
boolean |
hasData() |
boolean |
hasMultiLine() |
boolean |
hasSiblings()
Returns true if this node has sibling nodes.
|
void |
insertData(int offset,
String data) |
boolean |
isWhitespace() |
void |
replaceData(int offset,
int count,
String data) |
void |
setData(String value) |
void |
setWhitespace(boolean isWhitespace)
Set true if this node's data is all whitespace
|
boolean |
startsWithNewLine()
If data ends with a new line character.
|
String |
substringData(int offset,
int count) |
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getChild, getChildNodes, getChildren, getChildrenWithAttributeValue, getEnd, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOrphanEndElement, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousNonTextSibling, getPreviousSibling, getStart, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, isClosed, isComment, isDefaultNamespace, isDoctype, isDTDAttListDecl, isDTDElementDecl, isDTDEntityDecl, isDTDNotationDecl, isElement, isEqualNode, isGenericDTDDecl, isIncluded, isIncluded, isOwnerDocument, isProcessingInstruction, isProlog, isSameNode, isSupported, isText, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setAttributeNode, setNodeValue, setPrefix, setTextContent, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendChild, 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, setNodeValue, setPrefix, setTextContent, setUserDatapublic boolean hasMultiLine()
public String getDelimiter()
public boolean endsWithNewLine()
public boolean startsWithNewLine()
public String getNormalizedData()
public boolean hasData()
public boolean hasSiblings()
public int getStartContent()
public int getEndContent()
public String getData()
getData in interface CharacterDatapublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class DOMNodeDOMExceptionpublic boolean isWhitespace()
public void setWhitespace(boolean isWhitespace)
isWhitespace - public void appendData(String data) throws DOMException
appendData in interface CharacterDataDOMExceptionpublic void deleteData(int offset,
int count)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDatapublic void insertData(int offset,
String data)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void replaceData(int offset,
int count,
String data)
throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic void setData(String value) throws DOMException
setData in interface CharacterDataDOMExceptionpublic String substringData(int offset, int count) throws DOMException
substringData in interface CharacterDataDOMExceptionCopyright © 2022. All rights reserved.