org.apache.xerces.impl.xs.opti
public class TextImpl extends DefaultText
Version: $Id: TextImpl.java,v 1.4 2004/10/06 15:14:49 mrglavas Exp $
| Constructor Summary | |
|---|---|
| TextImpl(StringBuffer str, SchemaDOM sDOM, int row, int col) | |
| Method Summary | |
|---|---|
| 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. |
| Node | getNextSibling() |
| Node | getParentNode() |
| Node | getPreviousSibling() |
| String | substringData(int offset, int count)
Extracts a range of data from the node. |
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.Throws: DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMException
DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString variable on the implementation
platform.
data
and the substringData method below. This may have the
value zero, i.e., CharacterData nodes may be empty.Parameters: offset Start offset of substring to extract. count The number of 16-bit units to extract.
Returns: 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.
Throws: 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.