public class SimpleTextNode extends AbstractAdapterNode implements Node, Text
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| Constructor and Description |
|---|
SimpleTextNode(AdapterFactory rootAdapterFactory,
AdapterNode parent,
String propertyName,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String string) |
void |
deleteData(int i,
int i1) |
String |
getData() |
int |
getLength() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
protected String |
getStringValue() |
String |
getWholeText() |
void |
insertData(int i,
String string) |
boolean |
isElementContentWhitespace() |
void |
replaceData(int i,
int i1,
String string) |
Text |
replaceWholeText(String string) |
void |
setData(String string) |
Text |
splitText(int i) |
String |
substringData(int beginIndex,
int endIndex) |
appendChild, buildChildAdapters, cloneNode, compareDocumentPosition, getAdapterFactory, getAttributes, getBaseURI, getChildAdapters, getChildAfter, getChildBefore, getChildBeforeOrAfter, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getPropertyName, getPropertyValue, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, operationNotSupported, removeChild, replaceChild, setAdapterFactory, setContext, setNodeValue, setParent, setPrefix, setPropertyName, setPropertyValue, setTextContent, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic SimpleTextNode(AdapterFactory rootAdapterFactory, AdapterNode parent, String propertyName, Object value)
protected String getStringValue()
public void setData(String string) throws DOMException
setData in interface CharacterDataDOMExceptionpublic String getData() throws DOMException
getData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDatapublic String getNodeName()
getNodeName in interface NodegetNodeName in class AbstractAdapterNodepublic short getNodeType()
getNodeType in interface NodegetNodeType in class AbstractAdapterNodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class AbstractAdapterNodeDOMExceptionpublic void appendData(String string) throws DOMException
appendData in interface CharacterDataDOMExceptionpublic void deleteData(int i,
int i1)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic void insertData(int i,
String string)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void replaceData(int i,
int i1,
String string)
throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic Text splitText(int i) throws DOMException
splitText in interface TextDOMExceptionpublic String substringData(int beginIndex, int endIndex) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic boolean isElementContentWhitespace()
isElementContentWhitespace in interface Textpublic String getWholeText()
getWholeText in interface Textpublic Text replaceWholeText(String string) throws DOMException
replaceWholeText in interface TextDOMExceptionCopyright © 2000–2017 Apache Software Foundation. All rights reserved.