| java.lang.Object com.gargoylesoftware.htmlunit.html.DomNode com.gargoylesoftware.htmlunit.html.DomCharacterData
All known Subclasses: com.gargoylesoftware.htmlunit.html.DomText, com.gargoylesoftware.htmlunit.html.DomComment, com.gargoylesoftware.htmlunit.html.DomCData,
DomCharacterData | abstract public class DomCharacterData extends DomNode (Code) | | Wrapper for the DOM node CharacterData.
version: $Revision: 2132 $ author: David K. Taylor author: Christian Sell author: Ahmed Ashour |
Method Summary | |
public void | appendData(String newData) Append a string to character data. | public void | deleteData(int offset, int count) Delete characters from character data. | public String | getData() Get the data character string for this character data. | public int | getLength() Get the number of characters in the character data. | public String | getNodeValue() | public void | insertData(int offset, String arg) Insert a string into character data. | public void | replaceData(int offset, int count, String arg) Replace characters of character data with a string. | public void | setData(String newValue) Set the data character string to the new string. | public void | setNodeValue(String newValue) Set the data character string to the new string. | public String | substringData(int offset, int count) Extract a substring from character data.
Parameters: offset - The position of the first character to be extracted. Parameters: count - The number of characters to be extracted. |
DomCharacterData | public DomCharacterData(Page page, String data)(Code) | | Create an instance of DomCharacterData
Parameters: page - The Page that contains this element. Parameters: data - the data string wrapped by this node |
appendData | public void appendData(String newData)(Code) | | Append a string to character data.
Parameters: newData - The string to be appended to the character data. |
deleteData | public void deleteData(int offset, int count)(Code) | | Delete characters from character data.
Parameters: offset - The position of the first character to be deleted. Parameters: count - The number of characters to be deleted. |
getData | public String getData()(Code) | | Get the data character string for this character data.
The data String. |
getLength | public int getLength()(Code) | | Get the number of characters in the character data.
The number of characters. |
getNodeValue | public String getNodeValue()(Code) | | the string data held by this node |
insertData | public void insertData(int offset, String arg)(Code) | | Insert a string into character data.
Parameters: offset - The position within the first character at whichthe string is to be inserted. Parameters: arg - The string to insert. |
replaceData | public void replaceData(int offset, int count, String arg)(Code) | | Replace characters of character data with a string.
Parameters: offset - The position within the first character at whichthe string is to be replaced. Parameters: count - The number of characters to be replaced. Parameters: arg - The string that replaces the count characters beginning atthe character at offset. |
setData | public void setData(String newValue)(Code) | | Set the data character string to the new string.
Parameters: newValue - The new String of data. |
setNodeValue | public void setNodeValue(String newValue)(Code) | | Set the data character string to the new string.
Parameters: newValue - The new String of data. |
substringData | public String substringData(int offset, int count)(Code) | | Extract a substring from character data.
Parameters: offset - The position of the first character to be extracted. Parameters: count - The number of characters to be extracted. A string that consists of the count characters of thecharacter data starting from the character at position offset. |
Methods inherited from com.gargoylesoftware.htmlunit.html.DomNode | public void addDomChangeListener(DomChangeListener listener)(Code)(Java Doc) final public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public DomNode appendChild(DomNode node)(Code)(Java Doc) public DomNode appendDomChild(DomNode node)(Code)(Java Doc) public String asText()(Code)(Java Doc) public String asXml()(Code)(Java Doc) public DomNode cloneDomNode(boolean deep)(Code)(Java Doc) public DomNode cloneNode(boolean deep)(Code)(Java Doc) protected void fireNodeAdded(DomNode parentNode, DomNode addedNode)(Code)(Java Doc) protected void fireNodeDeleted(DomNode parentNode, DomNode deletedNode)(Code)(Java Doc) final protected synchronized void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public Iterator getAllHtmlChildElements()(Code)(Java Doc) public List getByXPath(String xpathExpr) throws JaxenException(Code)(Java Doc) public Iterator getChildIterator()(Code)(Java Doc) final protected String getChildrenAsText()(Code)(Java Doc) public int getEndColumnNumber()(Code)(Java Doc) public int getEndLineNumber()(Code)(Java Doc) public Function getEventHandler(String eventName)(Code)(Java Doc) public Object getFirstByXPath(String xpathExpr) throws JaxenException(Code)(Java Doc) public DomNode getFirstChild()(Code)(Java Doc) public DomNode getFirstDomChild()(Code)(Java Doc) public DomNode getLastChild()(Code)(Java Doc) public DomNode getLastDomChild()(Code)(Java Doc) public String getLocalName()(Code)(Java Doc) final protected Log getLog()(Code)(Java Doc) public String getNamespaceURI()(Code)(Java Doc) public Page getNativePage()(Code)(Java Doc) public DomNode getNextDomSibling()(Code)(Java Doc) public DomNode getNextSibling()(Code)(Java Doc) abstract public String getNodeName()(Code)(Java Doc) abstract public short getNodeType()(Code)(Java Doc) public String getNodeValue()(Code)(Java Doc) public HtmlPage getPage()(Code)(Java Doc) public DomNode getParentDomNode()(Code)(Java Doc) public DomNode getParentNode()(Code)(Java Doc) public String getPrefix()(Code)(Java Doc) public DomNode getPreviousDomSibling()(Code)(Java Doc) public DomNode getPreviousSibling()(Code)(Java Doc) public String getReadyState()(Code)(Java Doc) public ScriptableObject getScriptObject()(Code)(Java Doc) public int getStartColumnNumber()(Code)(Java Doc) public int getStartLineNumber()(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public void insertBefore(DomNode newNode) throws IllegalStateException(Code)(Java Doc) public boolean isAncestorOf(DomNode node)(Code)(Java Doc) protected boolean isRenderedVisible()(Code)(Java Doc) protected boolean isTrimmedText()(Code)(Java Doc) protected void notifyIncorrectness(String message)(Code)(Java Doc) protected void onAddedToPage()(Code)(Java Doc) protected void onAllChildrenAddedToPage()(Code)(Java Doc) protected void printChildrenAsXml(String indent, PrintWriter printWriter)(Code)(Java Doc) protected void printXml(String indent, PrintWriter printWriter)(Code)(Java Doc) protected static String reduceWhitespace(String text)(Code)(Java Doc) public void remove() throws IllegalStateException(Code)(Java Doc) public void removeAllChildren()(Code)(Java Doc) public void removeDomChangeListener(DomChangeListener listener)(Code)(Java Doc) public void removeEventHandler(String eventName)(Code)(Java Doc) final public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void replace(DomNode newNode) throws IllegalStateException(Code)(Java Doc) void setEndLocation(int endLineNumber, int endColumnNumber)(Code)(Java Doc) public void setEventHandler(String eventName, Function eventHandler)(Code)(Java Doc) public void setEventHandler(String eventName, String jsSnippet)(Code)(Java Doc) protected void setNextSibling(DomNode next)(Code)(Java Doc) public void setNodeValue(String x)(Code)(Java Doc) protected void setParentNode(DomNode parent)(Code)(Java Doc) public void setPrefix(String prefix)(Code)(Java Doc) protected void setPreviousSibling(DomNode previous)(Code)(Java Doc) public void setReadyState(String state)(Code)(Java Doc) public void setScriptObject(ScriptableObject scriptObject)(Code)(Java Doc) void setStartLocation(int startLineNumber, int startColumnNumber)(Code)(Java Doc)
|
|
|