public abstract class DomCharacterData extends DomNode
DomNode.ChildIterator, DomNode.DescendantElementsIterator
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE
Constructor and Description |
---|
DomCharacterData(Page page,
String data)
Create an instance of DomCharacterData
|
Modifier and Type | Method and Description |
---|---|
void |
appendData(String newData)
Append a string to character data.
|
void |
deleteData(int offset,
int count)
Delete characters from character data.
|
String |
getData()
Get the data character string for this character data.
|
int |
getLength()
Get the number of characters in the character data.
|
String |
getNodeValue()
Get the value for the current node.
|
void |
insertData(int offset,
String arg)
Insert a string into character data.
|
void |
replaceData(int offset,
int count,
String arg)
Replace characters of character data with a string.
|
void |
setData(String newValue)
Set the data character string to the new string.
|
void |
setNodeValue(String newValue)
Set the data character string to the new string.
|
String |
substringData(int offset,
int count)
Extract a substring from character data.
|
addDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, cloneDomNode, cloneNode, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLocalName, getLog, getNamespaceURI, getNativePage, getNextDomSibling, getNextSibling, getNodeName, getNodeType, getPage, getParentDomNode, getParentNode, getPrefix, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, hasAttributes, insertBefore, isAncestorOf, isRenderedVisible, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, printXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, removePropertyChangeListener, replace, setEventHandler, setEventHandler, setNextSibling, setParentNode, setPrefix, setPreviousSibling, setReadyState, setScriptObject
public String getData()
public void setData(String newValue)
newValue
- The new String of data.public void setNodeValue(String newValue)
setNodeValue
in class DomNode
newValue
- The new String of data.public int getLength()
public void appendData(String newData)
newData
- The string to be appended to the character data.public void deleteData(int offset, int count)
offset
- The position of the first character to be deleted.count
- The number of characters to be deleted.public void insertData(int offset, String arg)
offset
- The position within the first character at which
the string is to be inserted.arg
- The string to insert.public void replaceData(int offset, int count, String arg)
offset
- The position within the first character at which
the string is to be replaced.count
- The number of characters to be replaced.arg
- The string that replaces the count characters beginning at
the character at offset.public String substringData(int offset, int count)
offset
- The position of the first character to be extracted.count
- The number of characters to be extracted.public String getNodeValue()
DomNode
getNodeValue
in class DomNode
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.