public class AmetysText extends AbstractAmetysNode implements Text
Text on top of an objects hierarchy.| Modifier and Type | Field and Description | 
|---|---|
private String | 
_data  | 
private Element | 
_parent  | 
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 | 
|---|
AmetysText(String data,
          Element parent)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
appendData(String arg)  | 
void | 
deleteData(int offset,
          int count)  | 
String | 
getData()  | 
int | 
getLength()  | 
Node | 
getNextSibling()  | 
String | 
getNodeName()  | 
short | 
getNodeType()  | 
String | 
getNodeValue()  | 
Node | 
getParentNode()  | 
String | 
getTextContent()  | 
String | 
getWholeText()  | 
void | 
insertData(int offset,
          String arg)  | 
boolean | 
isElementContentWhitespace()  | 
void | 
replaceData(int offset,
           int count,
           String arg)  | 
Text | 
replaceWholeText(String content)  | 
void | 
setData(String data)  | 
Text | 
splitText(int offset)  | 
String | 
substringData(int offset,
             int count)  | 
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic AmetysText(String data, Element parent)
data - The data valueparent - the parent Element.public Node getParentNode()
getParentNode in interface NodegetParentNode in class AbstractAmetysNodepublic String getData() throws DOMException
getData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDatapublic String substringData(int offset, int count) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class AbstractAmetysNodeDOMExceptionpublic String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class AbstractAmetysNodepublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic void setData(String data) throws DOMException
setData in interface CharacterDataDOMExceptionpublic boolean isElementContentWhitespace()
isElementContentWhitespace in interface Textpublic String getWholeText()
getWholeText in interface Textpublic void appendData(String arg) throws DOMException
appendData in interface CharacterDataDOMExceptionpublic void insertData(int offset, String arg) throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void deleteData(int offset, int count) throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic void replaceData(int offset, int count, String arg) throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic Text splitText(int offset) throws DOMException
splitText in interface TextDOMExceptionpublic Text replaceWholeText(String content) throws DOMException
replaceWholeText in interface TextDOMException