Package org.apache.xerces.impl.xs.opti
Class TextImpl
- 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
-
- All Implemented Interfaces:
org.w3c.dom.CharacterData,org.w3c.dom.Node,org.w3c.dom.Text
public class TextImpl extends DefaultText
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: TextImpl.java 705596 2008-10-17 13:05:10Z mrglavas $
- Author:
- Neil Graham, IBM
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.Node
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetData()The character data of the node that implements this interface.intgetLength()The number of 16-bit units that are available throughdataand thesubstringDatamethod below.org.w3c.dom.NodegetNextSibling()java.lang.StringgetNodeName()org.w3c.dom.NodegetParentNode()org.w3c.dom.NodegetPreviousSibling()java.lang.StringsubstringData(int offset, int count)Extracts a range of data from the node.-
Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultText
appendData, deleteData, getWholeText, insertData, isElementContentWhitespace, replaceData, replaceWholeText, setData, splitText
-
Methods inherited from class org.apache.xerces.impl.xs.opti.NodeImpl
getLocalName, getNamespaceURI, getNodeType, getPrefix, getReadOnly, setReadOnly, toString
-
Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultNode
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNodeValue, getOwnerDocument, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
TextImpl
public TextImpl(java.lang.StringBuffer str, SchemaDOM sDOM, int row, int col)
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node- Overrides:
getNodeNamein classNodeImpl
-
getParentNode
public org.w3c.dom.Node getParentNode()
- Specified by:
getParentNodein interfaceorg.w3c.dom.Node- Overrides:
getParentNodein classDefaultNode
-
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceorg.w3c.dom.Node- Overrides:
getPreviousSiblingin classDefaultNode
-
getNextSibling
public org.w3c.dom.Node getNextSibling()
- Specified by:
getNextSiblingin interfaceorg.w3c.dom.Node- Overrides:
getNextSiblingin classDefaultNode
-
getData
public java.lang.String getData() throws org.w3c.dom.DOMExceptionThe 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 aCharacterDatanode. However, implementation limits may mean that the entirety of a node's data may not fit into a singleDOMString. In such cases, the user may callsubstringDatato retrieve the data in appropriately sized pieces.- Specified by:
getDatain interfaceorg.w3c.dom.CharacterData- Overrides:
getDatain classDefaultText- Throws:
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 aDOMStringvariable on the implementation platform.
-
getLength
public int getLength()
The number of 16-bit units that are available throughdataand thesubstringDatamethod below. This may have the value zero, i.e.,CharacterDatanodes may be empty.- Specified by:
getLengthin interfaceorg.w3c.dom.CharacterData- Overrides:
getLengthin classDefaultText
-
substringData
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMExceptionExtracts a range of data from the node.- Specified by:
substringDatain interfaceorg.w3c.dom.CharacterData- Overrides:
substringDatain classDefaultText- 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
offsetandcountexceeds thelength, then all 16-bit units to the end of the data are returned. - Throws:
org.w3c.dom.DOMException- INDEX_SIZE_ERR: Raised if the specifiedoffsetis negative or greater than the number of 16-bit units indata, or if the specifiedcountis negative.
DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into aDOMString.
-
-