| java.lang.Object org.apache.xerces.impl.xs.opti.DefaultNode org.apache.xerces.impl.xs.opti.NodeImpl org.apache.xerces.impl.xs.opti.DefaultText org.apache.xerces.impl.xs.opti.TextImpl
TextImpl | public class TextImpl extends DefaultText (Code) | | author: Neil Graham, IBM version: $Id: TextImpl.java 446728 2006-09-15 20:43:46Z mrglavas $ |
Method Summary | |
public String | getData() 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 Node | getNextSibling() | public Node | getParentNode() | public Node | getPreviousSibling() | public String | substringData(int offset, int count) Extracts a range of data from the node.
Parameters: offset - Start offset of substring to extract. Parameters: count - The number of 16-bit units to extract. |
getData | public String getData() throws DOMException(Code) | | 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.
exception: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. exception: 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()(Code) | | 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.
|
getPreviousSibling | public Node getPreviousSibling()(Code) | | |
substringData | public String substringData(int offset, int count) throws DOMException(Code) | | Extracts a range of data from the node.
Parameters: offset - Start offset of substring to extract. Parameters: 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. exception: 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 . |
|
|