|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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
Field Summary |
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 parent,
boolean dirty)
|
|
TextImpl(NodeImpl parent,
byte[] data,
int pos,
int len)
|
|
TextImpl(NodeImpl parent,
String nodeValue)
|
Method Summary | |
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. |
String |
getWholeText()
|
boolean |
isElementContentWhitespace()
|
org.w3c.dom.Text |
replaceWholeText(String content)
|
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, checkLoaded, deleteData, getData, getLength, insertData, replaceData, setData, setNodeValue, substringData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 parent, byte[] data, int pos, int len)
public TextImpl(NodeImpl parent, boolean dirty)
public TextImpl(NodeImpl parent, String nodeValue)
Method Detail |
public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
public 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
.
public boolean isElementContentWhitespace()
public String getWholeText()
public org.w3c.dom.Text replaceWholeText(String content) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |