API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom. CharacterData View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      CharacterData
Subinterfaces
Description
public interface CharacterData
  The CharacterData interface extends Node with a set of attributes and methods for accessing character data in the DOM.
See also:   
Methods
Hide/Show inherited methods
public void appendData (String arg) throws DOMException
  Append the string to the end of the character data of the node.
public void deleteData (int offset, int count) throws DOMException
  Remove a range of 16-bit units from the node.
public String getData () throws DOMException
  The character data of the node that implements this interface.
public int getLength ()
  The number of 16-bit units that are available through data and the substringData method below.
public void insertData (int offset, String arg) throws DOMException
  Insert a string at the specified 16-bit unit offset.
public void replaceData (int offset, int count, String arg) throws DOMException
  Replace the characters starting at the specified 16-bit unit offset with the specified string.
public void setData (String data) throws DOMException
  The character data of the node that implements this interface.
public String substringData (int offset, int count) throws DOMException
  Extracts a range of data from the node.
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From Node]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From Node]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From Node]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From Node]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From Node]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From Node]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From Node]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From Node]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From Node]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From Node]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From Node]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From Node]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From Node]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From Node]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From Node]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From Node]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From Node]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From Node]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar