Top Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs.opti

public Class TextImpl

extends DefaultText
Class Inheritance
Imports
org.w3c.dom.DOMException, .Node

Author
Neil Graham, IBM

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv String
pack-priv int
pack-priv SchemaDOM

Constructor Summary

AccessConstructor and Description
public
TextImpl(StringBuffer str, SchemaDOM sDOM, int row, int col)

Method Summary

Modifier and TypeMethod and Description
public String
getData()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.getData.

Implements org.w3c.dom.CharacterData.getData.

The character data of the node that implements this interface.

public int
getLength()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.getLength.

Implements org.w3c.dom.CharacterData.getLength.

The number of 16-bit units that are available through data and the substringData method below.

public Node
public Node
public Node
public String

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.
substringData
(int
Start offset of substring to extract.
offset
,
int
The number of 16-bit units to extract.
count
)

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.substringData.

Implements org.w3c.dom.CharacterData.substringData.

Extracts a range of data from the node.

Inherited from com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText:
appendDatadeleteDatagetWholeTextinsertDataisElementContentWhitespacereplaceDatareplaceWholeTextsetDatasplitText

Field Detail

fColback to summary
pack-priv int fCol
fDataback to summary
pack-priv String fData
fRowback to summary
pack-priv int fRow
fSchemaDOMback to summary
pack-priv SchemaDOM fSchemaDOM

Constructor Detail

TextImplback to summary
public TextImpl(StringBuffer str, SchemaDOM sDOM, int row, int col)

Method Detail

getDataback to summary
public String getData() throws DOMException

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.getData.

Implements org.w3c.dom.CharacterData.getData.

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.

Exceptions
DOMException:
  • NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
  • DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.
getLengthback to summary
public int getLength()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.getLength.

Implements org.w3c.dom.CharacterData.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.

getNextSiblingback to summary
public Node getNextSibling()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultNode.getNextSibling.

Implements org.w3c.dom.Node.getNextSibling.

Doc from org.w3c.dom.Node.getNextSibling.

The node immediately following this node. If there is no such node, this returns null.

getParentNodeback to summary
public Node getParentNode()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultNode.getParentNode.

Implements org.w3c.dom.Node.getParentNode.

Doc from org.w3c.dom.Node.getParentNode.

The parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.

getPreviousSiblingback to summary
public Node getPreviousSibling()

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultNode.getPreviousSibling.

Implements org.w3c.dom.Node.getPreviousSibling.

Doc from org.w3c.dom.Node.getPreviousSibling.

The node immediately preceding this node. If there is no such node, this returns null.

substringDataback to summary
public String substringData(int offset, int count) throws DOMException

Overrides com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultText.substringData.

Implements org.w3c.dom.CharacterData.substringData.

Extracts a range of data from the node.

Parameters
offset:int

Start offset of substring to extract.

count:int

The number of 16-bit units to extract.

Returns:String

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.

Exceptions
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.