Package gnu.kawa.xml
Class KCharacterData
- java.lang.Object
-
- gnu.lists.SeqPosition<Object,NodeTree>
-
- gnu.kawa.xml.KNode
-
- gnu.kawa.xml.KCharacterData
-
- All Implemented Interfaces:
Consumable
,Enumeration<Object>
,Iterator<Object>
,ListIterator<Object>
,CharacterData
,Node
public abstract class KCharacterData extends KNode implements CharacterData
-
-
Field Summary
-
Fields inherited from class gnu.lists.SeqPosition
ipos, sequence
-
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
-
-
Constructor Summary
Constructors Constructor Description KCharacterData(NodeTree seq, int ipos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendData(String data)
void
deleteData(int offset, int count)
String
getData()
int
getLength()
Non-optimized.void
insertData(int offset, String data)
void
replaceData(int offset, int count, String arg)
void
setData(String data)
String
substringData(int offset, int count)
-
Methods inherited from class gnu.kawa.xml.KNode
appendChild, atomicValue, baseURI, cloneNode, coerce, compareDocumentPosition, consume, copy, getAttributes, getBaseURI, getChildNodes, getElementsByTagName, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNameObject, getNodeSymbol, getNodeType, getNodeValue, getNodeValue, getNodeValue, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, make, make, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString
-
Methods inherited from class gnu.lists.SeqPosition
add, finalize, fromEndIndex, getContainingSequenceSize, getNext, getNextKind, getNextTypeName, getNextTypeObject, getPos, getPrevious, gotoChildrenStart, gotoEnd, gotoNext, gotoPrevious, gotoStart, hasMoreElements, hasNext, hasPrevious, isAfter, make, next, nextElement, nextIndex, previous, previousIndex, release, remove, set, set, set, setNext, setPos, setPos, setPrevious, toInfo
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
KCharacterData
public KCharacterData(NodeTree seq, int ipos)
-
-
Method Detail
-
getLength
public int getLength()
Non-optimized.- Specified by:
getLength
in interfaceCharacterData
-
getData
public String getData()
- Specified by:
getData
in interfaceCharacterData
-
setData
public void setData(String data) throws DOMException
- Specified by:
setData
in interfaceCharacterData
- Throws:
DOMException
-
substringData
public String substringData(int offset, int count) throws DOMException
- Specified by:
substringData
in interfaceCharacterData
- Throws:
DOMException
-
appendData
public void appendData(String data) throws DOMException
- Specified by:
appendData
in interfaceCharacterData
- Throws:
DOMException
-
insertData
public void insertData(int offset, String data) throws DOMException
- Specified by:
insertData
in interfaceCharacterData
- Throws:
DOMException
-
deleteData
public void deleteData(int offset, int count) throws DOMException
- Specified by:
deleteData
in interfaceCharacterData
- Throws:
DOMException
-
replaceData
public void replaceData(int offset, int count, String arg) throws DOMException
- Specified by:
replaceData
in interfaceCharacterData
- Throws:
DOMException
-
-