cdqa.object
Class XText

java.lang.Object
  extended by cdqa.object.XObject
      extended by cdqa.object.XDOMObject
          extended by cdqa.object.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(org.w3c.dom.Node n)
           
static XText create(org.w3c.dom.Text t)
           
(package private)  java.lang.String fullText()
           
 short getType()
          Returns the type of this object.
 XString pathTo(XObject o)
          Returns the path to this object.
(package private)  java.lang.String shortText()
           
(package private)  java.lang.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, getFullText, getLabel, isEND, isFALSE, isTRUE, theENDObject, valueCompare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public short getType()
Description copied from class: XObject
Returns the type of this object. see the enumeration in XObject class

Specified by:
getType in class XObject

pathTo

public final XString pathTo(XObject o)
Description copied from class: XObject
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

Specified by:
pathTo in class XObject

stringValue

java.lang.String stringValue()
Specified by:
stringValue in class XObject

shortText

java.lang.String shortText()
Specified by:
shortText in class XObject

fullText

java.lang.String fullText()
Specified by:
fullText in class XObject

valueCompare

public boolean valueCompare(XObject o)
Specified by:
valueCompare in class XObject

create

public static XText create(org.w3c.dom.Text t)

create

public static XText create(org.w3c.dom.Node n)