|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable
com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode
com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMCharacterData
public class XMLDOMCharacterData
A JavaScript object for MSXML's (ActiveX) XMLDOMCharacterData.
Provides text manipulation methods that are used by several objects.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
XMLDOMCharacterData()
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
appendData(String data)
Appends the supplied string to the existing string data. |
void |
deleteData(int offset,
int count)
Deletes specified data. |
Object |
getData()
Returns the node data depending on the node type. |
DomCharacterData |
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found. |
int |
getLength()
Returns the length, in characters, of the data. |
Object |
getXml()
Returns the XML representation of the node and all its descendants. |
void |
insertData(int offset,
String data)
Inserts a string at the specified offset. |
void |
replaceData(int offset,
int count,
String data)
Replaces the specified number of characters with the supplied string. |
void |
setData(String newData)
Sets the node data depending on the node type. |
void |
setText(Object newText)
Sets the text contained in the node. |
String |
substringData(int offset,
int count)
Retrieves a substring of the full string from the specified range. |
| Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode |
|---|
appendChild, cloneNode, getAttributes, getBaseName, getChildNodes, getDataType, getDefinition, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getText, hasChildNodes, insertBefore, insertBeforeImpl, removeChild, replaceChild, selectNodes, selectSingleNode, setNodeValue |
| Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable |
|---|
getClassName, getEnvironment, getPrototype, makeScriptableFor, setEnvironment, setParentScope |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, setCaseSensitive, setDomNode, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDOMCharacterData()
| Method Detail |
|---|
public Object getData()
public void setData(String newData)
newData - the node data depending on the node typepublic int getLength()
public void setText(Object newText)
setText in class XMLDOMNodenewText - the text contained in the nodepublic Object getXml()
getXml in class XMLDOMNodepublic void appendData(String data)
data - the data that is to be appended to the existing string
public void deleteData(int offset,
int count)
offset - the offset, in characters, at which to start deleting string datacount - the number of characters to delete
public void insertData(int offset,
String data)
offset - the offset, in characters, at which to insert the supplied string datadata - the data that is to be inserted into the existing string
public void replaceData(int offset,
int count,
String data)
offset - the offset, in characters, at which to start replacing string datacount - the number of characters to replacedata - the new data that replaces the old string data
public String substringData(int offset,
int count)
offset - the offset, in characters, from the beginning of the string. An offset of zero indicates
copying from the start of the datacount - the number of characters to retrieve from the specified offset
public DomCharacterData getDomNodeOrDie()
getDomNodeOrDie in class SimpleScriptable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||