cdqa.object

Class XText


public final class XText
extends XDOMObject

the wrapper class for DOM Text interfaces
Version:
$Id: XText.java,v 1.1 2004/09/23 09:49:47 benjello Exp $
Author:
$Author: benjello $

Field Summary

Fields inherited from class cdqa.object.XDOMObject

n

Fields inherited from class cdqa.object.XObject

LOGGER, TYPE_ATTR, TYPE_BOOLEAN, TYPE_DOCUMENT, TYPE_DOUBLE, TYPE_ELEMENT, TYPE_END, TYPE_INTEGER, TYPE_STRING, TYPE_TEXT

Method Summary

static XText
create(Node n)
static XText
create(Text t)
(package private) String
fullText()
short
getType()
Returns the type of this object.
XString
pathTo(XObject o)
Returns the path to this object.
(package private) String
shortText()
(package private) String
stringValue()
boolean
valueCompare(XObject o)

Methods inherited from class cdqa.object.XDOMObject

booleanValue, createDOMClone, createXDOMObject, doubleValue, getDocumentElement, getNodeName, getOwnerDocument, getParentNode, getWrappedNode, intValue, isAtomic, isDOM, print, setWrappedNode, toString

Methods inherited from class cdqa.object.XObject

asBoolean, asDouble, asInteger, asString, booleanValue, createDOMClone, doubleValue, fullText, getDocumentElement, getFullText, getLabel, getNodeName, getOwnerDocument, getParentNode, getType, intValue, isAtomic, isDOM, isEND, isFALSE, isTRUE, pathTo, print, shortText, stringValue, theENDObject, valueCompare, valueCompare

Method Details

create

public static XText create(Node n)

create

public static XText create(Text t)

fullText

(package private)  String fullText()
Overrides:
fullText in interface XObject

getType

public short getType()
Returns the type of this object. see the enumeration in XObject class
Overrides:
getType in interface XObject

pathTo

public final XString pathTo(XObject o)
Returns the path to this object. It is a XString of the form "this/label1/.../labels" null if this object does not actually belong to any document
Overrides:
pathTo in interface XObject

shortText

(package private)  String shortText()
Overrides:
shortText in interface XObject

stringValue

(package private)  String stringValue()
Overrides:
stringValue in interface XObject

valueCompare

public boolean valueCompare(XObject o)
Overrides:
valueCompare in interface XObject