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, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setUserData
public AmetysText(String data, Element parent)
data
- The data valueparent
- the parent Element
.public Node getParentNode()
getParentNode
in interface Node
getParentNode
in class AbstractAmetysNode
public String getData() throws DOMException
getData
in interface CharacterData
DOMException
public int getLength()
getLength
in interface CharacterData
public String substringData(int offset, int count) throws DOMException
substringData
in interface CharacterData
DOMException
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class AbstractAmetysNode
DOMException
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class AbstractAmetysNode
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public void setData(String data) throws DOMException
setData
in interface CharacterData
DOMException
public boolean isElementContentWhitespace()
isElementContentWhitespace
in interface Text
public String getWholeText()
getWholeText
in interface Text
public void appendData(String arg) throws DOMException
appendData
in interface CharacterData
DOMException
public void insertData(int offset, String arg) throws DOMException
insertData
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 arg) throws DOMException
replaceData
in interface CharacterData
DOMException
public Text splitText(int offset) throws DOMException
splitText
in interface Text
DOMException
public Text replaceWholeText(String content) throws DOMException
replaceWholeText
in interface Text
DOMException