Top Fields Constructors Methods
com.sun.webkit.dom

public Class CharacterDataImpl

extends NodeImpl
implements CharacterData
Class Inheritance
All Implemented Interfaces
org.w3c.dom.CharacterData, org.w3c.dom.Node
Known Direct Subclasses
com.sun.webkit.dom.CommentImpl, com.sun.webkit.dom.ProcessingInstructionImpl, com.sun.webkit.dom.TextImpl
Imports
java.lang.annotation.Native, org.w3c.dom.CharacterData, .DOMException, .Element, .Node

Field Summary

Modifier and TypeField and Description
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
Inherited from com.sun.webkit.dom.NodeImpl:
ATTRIBUTE_NODECDATA_SECTION_NODECOMMENT_NODEDOCUMENT_FRAGMENT_NODEDOCUMENT_NODEDOCUMENT_POSITION_CONTAINED_BYDOCUMENT_POSITION_CONTAINSDOCUMENT_POSITION_DISCONNECTEDDOCUMENT_POSITION_FOLLOWINGDOCUMENT_POSITION_IMPLEMENTATION_SPECIFICDOCUMENT_POSITION_PRECEDINGDOCUMENT_TYPE_NODEELEMENT_NODEENTITY_NODEENTITY_REFERENCE_NODENOTATION_NODEPROCESSING_INSTRUCTION_NODETEXT_NODE

Constructor Summary

AccessConstructor and Description
pack-priv
CharacterDataImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
public void
appendData(String
The DOMString to append.
data
)

Implements org.w3c.dom.CharacterData.appendData.

Append the string to the end of the character data of the node.

pack-priv static native void
appendDataImpl(long peer, String data)

public void
deleteData(int
The offset from which to start removing.
offset
,
int
The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted.
length
)

Implements org.w3c.dom.CharacterData.deleteData.

Remove a range of 16-bit units from the node.

pack-priv static native void
deleteDataImpl(long peer, int offset, int length)

public String
getData()

Implements org.w3c.dom.CharacterData.getData.

The character data of the node that implements this interface.

pack-priv static native String
getDataImpl(long peer)

pack-priv static Node
public int
getLength()

Implements org.w3c.dom.CharacterData.getLength.

The number of 16-bit units that are available through data and the substringData method below.

pack-priv static native int
getLengthImpl(long peer)

public Element
pack-priv static native long
public Element
pack-priv static native long
public void
insertData(int
The character offset at which to insert.
offset
,
String
The DOMString to insert.
data
)

Implements org.w3c.dom.CharacterData.insertData.

Insert a string at the specified 16-bit unit offset.

pack-priv static native void
insertDataImpl(long peer, int offset, String data)

public void
pack-priv static native void
removeImpl(long peer)

public void
replaceData(int
The offset from which to start replacing.
offset
,
int
The number of 16-bit units to replace. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced; (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation).
length
,
String
The DOMString with which the range must be replaced.
data
)

Implements org.w3c.dom.CharacterData.replaceData.

Replace the characters starting at the specified 16-bit unit offset with the specified string.

pack-priv static native void
replaceDataImpl(long peer, int offset, int length, String data)

public void
setData(String value)

Implements org.w3c.dom.CharacterData.setData.

The character data of the node that implements this interface.

pack-priv static native void
setDataImpl(long peer, String value)

public String
substringData(int
Start offset of substring to extract.
offset
,
int
The number of 16-bit units to extract.
length
)

Implements org.w3c.dom.CharacterData.substringData.

Extracts a range of data from the node.

pack-priv static native String
substringDataImpl(long peer, int offset, int length)

Inherited from com.sun.webkit.dom.NodeImpl:
addEventListeneraddEventListenerImplappendChildappendChildImplcloneNodecloneNodeImplcompareDocumentPositioncompareDocumentPositionImplcontainscontainsImplcreatecreateInterfacedispatchEventdispatchEventImplgetAttributesgetAttributesImplgetBaseURIgetBaseURIImplgetChildNodesgetChildNodesImplgetFeaturegetFirstChildgetFirstChildImplgetLastChildgetLastChildImplgetLocalNamegetLocalNameImplgetNamespaceURIgetNamespaceURIImplgetNextSiblinggetNextSiblingImplgetNodeNamegetNodeNameImplgetNodeTypegetNodeTypeImplgetNodeValuegetNodeValueImplgetOwnerDocumentgetOwnerDocumentImplgetParentElementgetParentElementImplgetParentNodegetParentNodeImplgetPeergetPrefixgetPrefixImplgetPreviousSiblinggetPreviousSiblingImplgetTextContentgetTextContentImplgetUserDatahasAttributeshasAttributesImplhasChildNodeshasChildNodesImplinsertBeforeinsertBeforeImplisDefaultNamespaceisDefaultNamespaceImplisEqualNodeisEqualNodeImplisSameNodeisSameNodeImplisSupportedisSupportedImpllookupNamespaceURIlookupNamespaceURIImpllookupPrefixlookupPrefixImplnormalizenormalizeImplremoveChildremoveChildImplremoveEventListenerremoveEventListenerImplreplaceChildreplaceChildImplsetNodeValuesetNodeValueImplsetPrefixsetPrefixImplsetTextContentsetTextContentImplsetUserDatatest_getHashCount

Field Detail

COMBINING_SPACING_MARKback to summary
public static final byte COMBINING_SPACING_MARK
Annotations
@Native
CONNECTOR_PUNCTUATIONback to summary
public static final byte CONNECTOR_PUNCTUATION
Annotations
@Native
CONTROLback to summary
public static final byte CONTROL
Annotations
@Native
CURRENCY_SYMBOLback to summary
public static final byte CURRENCY_SYMBOL
Annotations
@Native
DASH_PUNCTUATIONback to summary
public static final byte DASH_PUNCTUATION
Annotations
@Native
DECIMAL_DIGIT_NUMBERback to summary
public static final byte DECIMAL_DIGIT_NUMBER
Annotations
@Native
DIRECTIONALITY_ARABIC_NUMBERback to summary
public static final byte DIRECTIONALITY_ARABIC_NUMBER
Annotations
@Native
DIRECTIONALITY_BOUNDARY_NEUTRALback to summary
public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL
Annotations
@Native
DIRECTIONALITY_COMMON_NUMBER_SEPARATORback to summary
public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
Annotations
@Native
DIRECTIONALITY_EUROPEAN_NUMBERback to summary
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER
Annotations
@Native
DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATORback to summary
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
Annotations
@Native
DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATORback to summary
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
Annotations
@Native
DIRECTIONALITY_LEFT_TO_RIGHTback to summary
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT
Annotations
@Native
DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDINGback to summary
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
Annotations
@Native
DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDEback to summary
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
Annotations
@Native
DIRECTIONALITY_NONSPACING_MARKback to summary
public static final byte DIRECTIONALITY_NONSPACING_MARK
Annotations
@Native
DIRECTIONALITY_OTHER_NEUTRALSback to summary
public static final byte DIRECTIONALITY_OTHER_NEUTRALS
Annotations
@Native
DIRECTIONALITY_PARAGRAPH_SEPARATORback to summary
public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR
Annotations
@Native
DIRECTIONALITY_POP_DIRECTIONAL_FORMATback to summary
public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
Annotations
@Native
DIRECTIONALITY_RIGHT_TO_LEFTback to summary
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT
Annotations
@Native
DIRECTIONALITY_RIGHT_TO_LEFT_ARABICback to summary
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
Annotations
@Native
DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDINGback to summary
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
Annotations
@Native
DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDEback to summary
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
Annotations
@Native
DIRECTIONALITY_SEGMENT_SEPARATORback to summary
public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR
Annotations
@Native
DIRECTIONALITY_WHITESPACEback to summary
public static final byte DIRECTIONALITY_WHITESPACE
Annotations
@Native
ENCLOSING_MARKback to summary
public static final byte ENCLOSING_MARK
Annotations
@Native
END_PUNCTUATIONback to summary
public static final byte END_PUNCTUATION
Annotations
@Native
FINAL_QUOTE_PUNCTUATIONback to summary
public static final byte FINAL_QUOTE_PUNCTUATION
Annotations
@Native
FORMATback to summary
public static final byte FORMAT
Annotations
@Native
INITIAL_QUOTE_PUNCTUATIONback to summary
public static final byte INITIAL_QUOTE_PUNCTUATION
Annotations
@Native
LETTER_NUMBERback to summary
public static final byte LETTER_NUMBER
Annotations
@Native
LINE_SEPARATORback to summary
public static final byte LINE_SEPARATOR
Annotations
@Native
LOWERCASE_LETTERback to summary
public static final byte LOWERCASE_LETTER
Annotations
@Native
MATH_SYMBOLback to summary
public static final byte MATH_SYMBOL
Annotations
@Native
MODIFIER_LETTERback to summary
public static final byte MODIFIER_LETTER
Annotations
@Native
MODIFIER_SYMBOLback to summary
public static final byte MODIFIER_SYMBOL
Annotations
@Native
NON_SPACING_MARKback to summary
public static final byte NON_SPACING_MARK
Annotations
@Native
OTHER_LETTERback to summary
public static final byte OTHER_LETTER
Annotations
@Native
OTHER_NUMBERback to summary
public static final byte OTHER_NUMBER
Annotations
@Native
OTHER_PUNCTUATIONback to summary
public static final byte OTHER_PUNCTUATION
Annotations
@Native
OTHER_SYMBOLback to summary
public static final byte OTHER_SYMBOL
Annotations
@Native
PARAGRAPH_SEPARATORback to summary
public static final byte PARAGRAPH_SEPARATOR
Annotations
@Native
PRIVATE_USEback to summary
public static final byte PRIVATE_USE
Annotations
@Native
SPACE_SEPARATORback to summary
public static final byte SPACE_SEPARATOR
Annotations
@Native
START_PUNCTUATIONback to summary
public static final byte START_PUNCTUATION
Annotations
@Native
SURROGATEback to summary
public static final byte SURROGATE
Annotations
@Native
TITLECASE_LETTERback to summary
public static final byte TITLECASE_LETTER
Annotations
@Native
UNASSIGNEDback to summary
public static final byte UNASSIGNED
Annotations
@Native
UPPERCASE_LETTERback to summary
public static final byte UPPERCASE_LETTER
Annotations
@Native

Constructor Detail

CharacterDataImplback to summary
pack-priv CharacterDataImpl(long peer)

Method Detail

appendDataback to summary
public void appendData(String data)

Implements org.w3c.dom.CharacterData.appendData.

Doc from org.w3c.dom.CharacterData.appendData.

Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the DOMString specified.

Parameters
data:String

The DOMString to append.

appendDataImplback to summary
pack-priv static native void appendDataImpl(long peer, String data)
deleteDataback to summary
public void deleteData(int offset, int length) throws DOMException

Implements org.w3c.dom.CharacterData.deleteData.

Doc from org.w3c.dom.CharacterData.deleteData.

Remove a range of 16-bit units from the node. Upon success, data and length reflect the change.

Parameters
offset:int

The offset from which to start removing.

length:int

The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
deleteDataImplback to summary
pack-priv static native void deleteDataImpl(long peer, int offset, int length)
getDataback to summary
public String getData()

Implements org.w3c.dom.CharacterData.getData.

Doc from org.w3c.dom.CharacterData.getData.

The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a CharacterData node. However, implementation limits may mean that the entirety of a node's data may not fit into a single DOMString. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces.

getDataImplback to summary
pack-priv static native String getDataImpl(long peer)
getImplback to summary
pack-priv static Node getImpl(long peer)

Hides com.sun.webkit.dom.NodeImpl.getImpl.

getLengthback to summary
public int getLength()

Implements org.w3c.dom.CharacterData.getLength.

Doc from org.w3c.dom.CharacterData.getLength.

The number of 16-bit units that are available through data and the substringData method below. This may have the value zero, i.e., CharacterData nodes may be empty.

getLengthImplback to summary
pack-priv static native int getLengthImpl(long peer)
getNextElementSiblingback to summary
public Element getNextElementSibling()
getNextElementSiblingImplback to summary
pack-priv static native long getNextElementSiblingImpl(long peer)
getPreviousElementSiblingback to summary
public Element getPreviousElementSibling()
getPreviousElementSiblingImplback to summary
pack-priv static native long getPreviousElementSiblingImpl(long peer)
insertDataback to summary
public void insertData(int offset, String data) throws DOMException

Implements org.w3c.dom.CharacterData.insertData.

Doc from org.w3c.dom.CharacterData.insertData.

Insert a string at the specified 16-bit unit offset.

Parameters
offset:int

The character offset at which to insert.

data:String

The DOMString to insert.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
insertDataImplback to summary
pack-priv static native void insertDataImpl(long peer, int offset, String data)
removeback to summary
public void remove() throws DOMException
removeImplback to summary
pack-priv static native void removeImpl(long peer)
replaceDataback to summary
public void replaceData(int offset, int length, String data) throws DOMException

Implements org.w3c.dom.CharacterData.replaceData.

Doc from org.w3c.dom.CharacterData.replaceData.

Replace the characters starting at the specified 16-bit unit offset with the specified string.

Parameters
offset:int

The offset from which to start replacing.

length:int

The number of 16-bit units to replace. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced; (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation).

data:String

The DOMString with which the range must be replaced.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
replaceDataImplback to summary
pack-priv static native void replaceDataImpl(long peer, int offset, int length, String data)
setDataback to summary
public void setData(String value)

Implements org.w3c.dom.CharacterData.setData.

Doc from org.w3c.dom.CharacterData.setData.

The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a CharacterData node. However, implementation limits may mean that the entirety of a node's data may not fit into a single DOMString. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces.

setDataImplback to summary
pack-priv static native void setDataImpl(long peer, String value)
substringDataback to summary
public String substringData(int offset, int length) throws DOMException

Implements org.w3c.dom.CharacterData.substringData.

Doc from org.w3c.dom.CharacterData.substringData.

Extracts a range of data from the node.

Parameters
offset:int

Start offset of substring to extract.

length:int

The number of 16-bit units to extract.

Returns:String

The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a DOMString.
substringDataImplback to summary
pack-priv static native String substringDataImpl(long peer, int offset, int length)