|
||||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
|---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
| Field Summary |
|---|
| Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
|---|
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 Summary | |
|---|---|
DomCharacterData(Page page,
String data)
Create an instance of DomCharacterData |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomCharacterData(Page page,
String data)
page - The Page that contains this element.data - the data string wrapped by this node| Method Detail |
|---|
public String getData()
public void setData(String newValue)
newValue - The new String of data.public void setNodeValue(String newValue)
setNodeValue in class DomNodenewValue - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||