gnu.kawa.xml

Class KText

Implemented Interfaces:
java.util.Enumeration, java.util.ListIterator
Known Direct Subclasses:
KCDATASection

public class KText
extends KCharacterData

Field Summary

Fields inherited from class gnu.lists.SeqPosition

ipos, sequence

Constructor Summary

KText(NodeTree seq, int ipos)

Method Summary

String
getNodeName()
short
getNodeType()
String
getWholeText()
boolean
hasAttributes()
boolean
isElementContentWhitespace()
static KText
make(String text)
Text
replaceWholeText(String content)
Text
splitText(int offset)

Methods inherited from class gnu.kawa.xml.KCharacterData

appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData

Methods inherited from class gnu.kawa.xml.KNode

coerce, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getNodeValue, getPrefix, getTextContent, getTextContent, hasAttributes, hasChildNodes, isDefaultNamespace, isSupported, lookupNamespaceURI, lookupPrefix, make, make, normalize, toString

Methods inherited from class gnu.lists.SeqPosition

add, copy, 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, toString

Constructor Details

KText

public KText(NodeTree seq,
             int ipos)

Method Details

getNodeName

public String getNodeName()
Overrides:
getNodeName in interface KNode

getNodeType

public short getNodeType()
Overrides:
getNodeType in interface KNode

getWholeText

public String getWholeText()

hasAttributes

public boolean hasAttributes()
Overrides:
hasAttributes in interface KNode

isElementContentWhitespace

public boolean isElementContentWhitespace()

make

public static KText make(String text)

replaceWholeText

public Text replaceWholeText(String content)
            throws DOMException

splitText

public Text splitText(int offset)
            throws DOMException