com.teamkonzept.dom4jb.dom
Class Text
java.lang.Object
|
+--com.teamkonzept.dom4jb.dom.NodeList
|
+--com.teamkonzept.dom4jb.dom.Node
|
+--com.teamkonzept.dom4jb.dom.CharacterData
|
+--com.teamkonzept.dom4jb.dom.Text
- All Implemented Interfaces:
- CharacterData, Node, NodeList, Text
- Direct Known Subclasses:
- Text
- public class Text
- extends CharacterData
- implements Text
| Fields inherited from class com.teamkonzept.dom4jb.dom.Node |
document |
| 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 |
| Methods inherited from class com.teamkonzept.dom4jb.dom.CharacterData |
appendData, deleteData, getLength, getLocalName, getNamespaceURI, getNodeValue, getPrefix, insertData, replaceData, setData, setPrefix, substringData |
| Methods inherited from class com.teamkonzept.dom4jb.dom.Node |
appendChild, attach, cloneNode, getAttributes, getChildIndex, getChildNodes, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
| Methods inherited from class com.teamkonzept.dom4jb.dom.NodeList |
add, clear, ensureCapacity, get, getParentNode, isEmpty, item, setIterator, setParentNode, size, trimToSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
Text
public Text(Document document,
TextDescriptor descriptor,
Object bean)
- Creates new Text
getNodeType
public final short getNodeType()
- Specified by:
getNodeType in interface Node
getNodeName
public String getNodeName()
- Specified by:
getNodeName in interface Node- Overrides:
getNodeName in class CharacterData
getData
public String getData()
- Specified by:
getData in interface CharacterData
splitText
public Text splitText(int offset)
- Breaks this node into two nodes at the specified
offset,
keeping both in the tree as siblings. After being split, this node
will contain all the content up to the offset point. A
new node of the same type, which contains all the content at and
after the offset point, is returned. If the original
node had a parent node, the new node is inserted as the next sibling
of the original node. When the offset is equal to the
length of this node, the new node has no data.
- Specified by:
splitText in interface Text
- Parameters:
offset - The 16-bit unit offset at which to split, starting from
0.
- Returns:
- The new node, of the same type as this node.
accept
public boolean accept(Filter filter)
- Specified by:
accept in class Node
Copyright © 2001-2003 Team-Konzept GmbH & CO KG. All Rights Reserved.