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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, 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, setUserData
public SimpleTextNode(AdapterFactory rootAdapterFactory, AdapterNode parent, String propertyName, Object value)
protected String getStringValue()
public void setData(String string) throws DOMException
setData
in interface CharacterData
DOMException
public String getData() throws DOMException
getData
in interface CharacterData
DOMException
public int getLength()
getLength
in interface CharacterData
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class AbstractAdapterNode
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class AbstractAdapterNode
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class AbstractAdapterNode
DOMException
public void appendData(String string) throws DOMException
appendData
in interface CharacterData
DOMException
public void deleteData(int i, int i1) throws DOMException
deleteData
in interface CharacterData
DOMException
public void insertData(int i, String string) throws DOMException
insertData
in interface CharacterData
DOMException
public void replaceData(int i, int i1, String string) throws DOMException
replaceData
in interface CharacterData
DOMException
public Text splitText(int i) throws DOMException
splitText
in interface Text
DOMException
public String substringData(int beginIndex, int endIndex) throws DOMException
substringData
in interface CharacterData
DOMException
public boolean isElementContentWhitespace()
isElementContentWhitespace
in interface Text
public String getWholeText()
getWholeText
in interface Text
public Text replaceWholeText(String string) throws DOMException
replaceWholeText
in interface Text
DOMException
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.