org.apache.xerces.impl.xs.opti
Class TextImpl
- org.w3c.dom.Node, org.w3c.dom.Text
$Id: TextImpl.java 320098 2004-10-06 15:14:55Z mrglavas $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_NODE |
String | getData() - The character data of the node that implements this interface.
|
int | getLength() - The number of 16-bit units that are available through
data
and the substringData method below.
|
org.w3c.dom.Node | getNextSibling()
|
org.w3c.dom.Node | getParentNode()
|
org.w3c.dom.Node | getPreviousSibling()
|
String | substringData(int offset, int count) - Extracts a range of data from the node.
|
appendData , deleteData , getData , getLength , getWholeText , insertData , isElementContentWhitespace , replaceData , replaceWholeText , setData , splitText , substringData |
appendChild , 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 |
TextImpl
public TextImpl(StringBuffer str,
SchemaDOM sDOM,
int row,
int col)
getData
public String getData()
throws org.w3c.dom.DOMException
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.
- getData in interface org.w3c.dom.CharacterData
- getData in interface DefaultText
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.org.w3c.dom.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString
variable on the implementation
platform.
getLength
public int 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.
- getLength in interface org.w3c.dom.CharacterData
- getLength in interface DefaultText
substringData
public String substringData(int offset,
int count)
throws org.w3c.dom.DOMException
Extracts a range of data from the node.
- substringData in interface org.w3c.dom.CharacterData
- substringData in interface DefaultText
offset
- Start offset of substring to extract.count
- The number of 16-bit units to extract.
- 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.
org.w3c.dom.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
.
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.