|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.xml.dom.NodeImpl | +--org.apache.xindice.xml.dom.CharacterDataImpl | +--org.apache.xindice.xml.dom.TextImpl
TextImpl
Fields inherited from class org.apache.xindice.xml.dom.NodeImpl |
EX_DOMSTRING_SIZE, EX_HIERARCHY_REQUEST, EX_INDEX_SIZE, EX_INUSE_ATTRIBUTE, EX_INVALID_STATE, EX_NO_DATA_ALLOWED, EX_NO_MODIFICATION_ALLOWED, EX_NOT_FOUND, EX_WRONG_DOCUMENT, OBJECT_HREF, OBJECT_NS, OBJECT_TYPE, TYPE_APPEND, TYPE_CONTENT, TYPE_INSERT, TYPE_REPLACE, XMLNS_PREFIX |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
TextImpl()
|
|
TextImpl(NodeImpl parentNode,
boolean dirty)
|
|
TextImpl(NodeImpl parentNode,
byte[] data,
int pos,
int len)
|
|
TextImpl(NodeImpl parentNode,
java.lang.String nodeValue)
|
Method Summary | |
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
org.w3c.dom.Text |
splitText(int offset)
Breaks this Text node into two Text nodes at the specified
offset, keeping both in the tree as siblings. |
Methods inherited from class org.apache.xindice.xml.dom.CharacterDataImpl |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, setNodeValue, substringData |
Methods inherited from class org.apache.xindice.xml.dom.NodeImpl |
appendChild, checkReadOnly, cloneNode, expandSource, getAttributes, getChildNodes, getDataBytes, getDataLen, getDataPos, getFirstChild, getKey, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSource, getSymbolID, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefined, isDirty, isLoaded, isSameNode, isSupported, load, lookupDefaultNamespaceURI, lookupNamespacePrefix, lookupNamespaceURI, normalize, normalizeNS, removeChild, replaceChild, setDataBytes, setDataBytes, setDataLen, setDataPos, setDirty, setNodeName, setParentNode, setPrefix, setSource, setUserData, unload |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.CharacterData |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public TextImpl()
public TextImpl(NodeImpl parentNode, byte[] data, int pos, int len)
public TextImpl(NodeImpl parentNode, boolean dirty)
public TextImpl(NodeImpl parentNode, java.lang.String nodeValue)
Method Detail |
public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
public java.lang.String getNodeName()
NodeImpl
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
public final org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMException
Text
node into two Text nodes at the specified
offset, keeping both in the tree as siblings. This node then only
contains all the content up to the offset
point. And a new
Text
node, which is inserted as the next sibling of this
node, contains all the content at and after the offset
point.splitText
in interface org.w3c.dom.Text
offset
- The offset at which to split, starting from 0.Text
node.org.w3c.dom.DOMException
- INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
than the number of characters in data
.
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |