public class XMLDOMCharacterData extends XMLDOMNode
| Constructor and Description |
|---|
XMLDOMCharacterData() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setNodeValuegetClassName, getEnvironment, getPrototype, isReadOnlySettable, makeScriptableFor, setEnvironment, setParentScopeclone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, put, setClassNameapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic 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 stringpublic void deleteData(int offset,
int count)
offset - the offset, in characters, at which to start deleting string datacount - the number of characters to deletepublic 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 stringpublic 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 datapublic 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 offsetpublic DomCharacterData getDomNodeOrDie()
getDomNodeOrDie in class SimpleScriptableCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.