|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomCharacterData
public abstract class DomCharacterData
Wrapper for the DOM node CharacterData.
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Constructor Summary | |
---|---|
DomCharacterData(HtmlPage page,
java.lang.String data)
Create an instance of DomCharacterData |
Method Summary | |
---|---|
void |
appendData(java.lang.String newData)
Append a string to character data. |
void |
deleteData(int offset,
int count)
Delete characters from character data. |
java.lang.String |
getData()
Get the data character string for this character data. |
int |
getLength()
Get the number of characters in the character data. |
java.lang.String |
getNodeValue()
Get the value for the current node. |
void |
insertData(int offset,
java.lang.String arg)
Insert a string into character data. |
void |
replaceData(int offset,
int count,
java.lang.String arg)
Replace characters of character data with a string. |
void |
setData(java.lang.String newValue)
Set the data character string to the new string. |
void |
setNodeValue(java.lang.String newValue)
Set the data character string to the new string. |
java.lang.String |
substringData(int offset,
int count)
Extract a substring from character data. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asText, asXml, cloneDomNode, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeName, getNodeType, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, replace, setEventHandler, setEventHandler, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomCharacterData(HtmlPage page, java.lang.String data)
page
- The HtmlPage that contains this element.data
- the data string wrapped by this nodeMethod Detail |
---|
public void appendData(java.lang.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 java.lang.String getData()
public int getLength()
public java.lang.String getNodeValue()
DomNode
getNodeValue
in class DomNode
public void insertData(int offset, java.lang.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, java.lang.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 void setData(java.lang.String newValue)
newValue
- The new String of data.public void setNodeValue(java.lang.String newValue)
setNodeValue
in class DomNode
newValue
- The new String of data.public java.lang.String substringData(int offset, int count)
offset
- The position of the first character to be extracted.count
- The number of characters to be extracted.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |