API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom. Text View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      CharacterData
          Text
Subinterfaces
Description
public interface Text
  The Text interface inherits from CharacterData and represents the textual content (termed character data in XML) of an Element or Attr.
See also:   
Methods
Hide/Show inherited methods
public String getWholeText ()
  Returns all text of Text nodes logically-adjacent text nodes to this node, concatenated in document order.
public boolean isElementContentWhitespace ()
  Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace".
public Text replaceWholeText (String content) throws DOMException
  Replaces the text of the current node and all logically-adjacent text nodes with the specified text.
public Text splitText (int offset) throws DOMException
  Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From CharacterData]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From CharacterData]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From CharacterData]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From CharacterData]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From CharacterData]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From CharacterData]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From CharacterData]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From CharacterData]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From CharacterData]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From CharacterData]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From CharacterData]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From CharacterData]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From CharacterData]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From CharacterData]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From CharacterData]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From CharacterData]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From CharacterData]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From CharacterData]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar