public class CharacterDataImpl extends NodeImpl implements CharacterData
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String data) |
Object |
call(String methodName,
Object... args)
Calls a JavaScript method.
|
void |
deleteData(int offset,
int length) |
boolean |
equals(Object other) |
Object |
eval(String s)
Evaluates a JavaScript expression.
|
String |
getData() |
int |
getLength() |
Object |
getMember(String name)
Retrieves a named member of a JavaScript object.
|
Element |
getNextElementSibling() |
Element |
getPreviousElementSibling() |
Object |
getSlot(int index)
Retrieves an indexed member of a JavaScript object.
|
int |
hashCode() |
void |
insertData(int offset,
String data) |
void |
remove() |
void |
removeMember(String name)
Removes a named member of a JavaScript object.
|
void |
replaceData(int offset,
int length,
String data) |
void |
setData(String value) |
void |
setMember(String name,
Object value)
Sets a named member of a JavaScript object.
|
void |
setSlot(int index,
Object value)
Sets an indexed member of a JavaScript object.
|
String |
substringData(int offset,
int length) |
String |
toString() |
addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
@Native public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
@Native public static final byte DIRECTIONALITY_ARABIC_NUMBER
@Native public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
@Native public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR
@Native public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR
@Native public static final byte DIRECTIONALITY_WHITESPACE
@Native public static final byte DIRECTIONALITY_OTHER_NEUTRALS
@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
@Native public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
@Native public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
@Native public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
@Native public static final byte DIRECTIONALITY_NONSPACING_MARK
@Native public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL
@Native public static final byte UNASSIGNED
@Native public static final byte UPPERCASE_LETTER
@Native public static final byte LOWERCASE_LETTER
@Native public static final byte TITLECASE_LETTER
@Native public static final byte MODIFIER_LETTER
@Native public static final byte OTHER_LETTER
@Native public static final byte NON_SPACING_MARK
@Native public static final byte ENCLOSING_MARK
@Native public static final byte COMBINING_SPACING_MARK
@Native public static final byte DECIMAL_DIGIT_NUMBER
@Native public static final byte LETTER_NUMBER
@Native public static final byte OTHER_NUMBER
@Native public static final byte SPACE_SEPARATOR
@Native public static final byte LINE_SEPARATOR
@Native public static final byte PARAGRAPH_SEPARATOR
@Native public static final byte CONTROL
@Native public static final byte FORMAT
@Native public static final byte PRIVATE_USE
@Native public static final byte SURROGATE
@Native public static final byte DASH_PUNCTUATION
@Native public static final byte START_PUNCTUATION
@Native public static final byte END_PUNCTUATION
@Native public static final byte CONNECTOR_PUNCTUATION
@Native public static final byte OTHER_PUNCTUATION
@Native public static final byte MATH_SYMBOL
@Native public static final byte CURRENCY_SYMBOL
@Native public static final byte MODIFIER_SYMBOL
@Native public static final byte OTHER_SYMBOL
@Native public static final byte INITIAL_QUOTE_PUNCTUATION
@Native public static final byte FINAL_QUOTE_PUNCTUATION
public String getData()
getData in interface CharacterDatapublic void setData(String value)
setData in interface CharacterDatapublic int getLength()
getLength in interface CharacterDatapublic Element getPreviousElementSibling()
public Element getNextElementSibling()
public String substringData(int offset, int length) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic void appendData(String data)
appendData in interface CharacterDatapublic void insertData(int offset,
String data)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void deleteData(int offset,
int length)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic void replaceData(int offset,
int length,
String data)
throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic void remove()
throws DOMException
DOMExceptionpublic Object eval(String s) throws JSException
JSObjectEvaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".
eval in class JSObjects - The JavaScript expression.JSExceptionpublic Object getMember(String name)
JSObjectRetrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObjectSets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember in class JSObjectname - The name of the JavaScript property to be accessed.value - The value of the propery.JSExceptionpublic void removeMember(String name) throws JSException
JSObjectRemoves a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember in class JSObjectname - The name of the JavaScript property to be removed.JSExceptionpublic Object getSlot(int index) throws JSException
JSObjectRetrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic void setSlot(int index,
Object value)
throws JSException
JSObjectSets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic Object call(String methodName, Object... args) throws JSException
JSObjectCalls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call in class JSObjectmethodName - The name of the JavaScript method to be invoked.args - the Java objects passed as arguments to the method.JSExceptionCopyright © 2025. All rights reserved.