|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdqa.object.XObject
public abstract class XObject
The base class for cdqa objects.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
LOGGER
|
static short |
TYPE_ATTR
|
static short |
TYPE_BOOLEAN
|
static short |
TYPE_DOCUMENT
|
static short |
TYPE_DOUBLE
|
static short |
TYPE_ELEMENT
|
static short |
TYPE_END
|
static short |
TYPE_INTEGER
|
static short |
TYPE_STRING
|
static short |
TYPE_TEXT
|
Constructor Summary | |
---|---|
XObject()
|
Method Summary | |
---|---|
XBoolean |
asBoolean()
Convert this XObject into a XBoolean. |
XDouble |
asDouble()
Convert this XObject into a XDouble. |
XInteger |
asInteger()
Convert this XObject into a XInteger. |
XString |
asString()
Convert this XObject into a XString. |
(package private) abstract boolean |
booleanValue()
|
abstract org.w3c.dom.Node |
createDOMClone()
creates a clone of this object |
(package private) abstract double |
doubleValue()
|
(package private) abstract java.lang.String |
fullText()
|
abstract XElement |
getDocumentElement()
The root element of the document this object belongs to, if any. |
XString |
getFullText()
Convert this XObject into a XString. |
XString |
getLabel()
The label of this object. |
abstract XString |
getNodeName()
Returns a XString containing the node name of this XObject as defined in the W3C recommandation, if this XObject wraps a DOM object. |
abstract XDocument |
getOwnerDocument(IRepository repository)
The document this object belongs to, if any. |
abstract XDOMObject |
getParentNode()
Returns the parent object of this object null if this object has no parent |
abstract short |
getType()
Returns the type of this object. |
(package private) abstract int |
intValue()
|
abstract boolean |
isAtomic()
f Returns true iff this object is atomic |
abstract boolean |
isDOM()
Returns true iff this object is a DOM object |
static boolean |
isEND(XObject o)
Returns true iff o is the XObject is END |
static boolean |
isFALSE(XObject o)
Returns true iff o is the XBoolean FALSE |
static boolean |
isTRUE(XObject o)
Returns true iff o is the XBoolean TRUE |
abstract XString |
pathTo(XObject o)
Returns the path to this object. |
abstract void |
print(XObjectWriter w)
output |
(package private) abstract java.lang.String |
shortText()
|
(package private) abstract java.lang.String |
stringValue()
|
static XObject |
theENDObject()
|
abstract boolean |
valueCompare(XObject o)
|
static boolean |
valueCompare(XObject o1,
XObject o2)
performs a comparison by value between two XObjects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
public static final short TYPE_END
public static final short TYPE_BOOLEAN
public static final short TYPE_INTEGER
public static final short TYPE_DOUBLE
public static final short TYPE_STRING
public static final short TYPE_TEXT
public static final short TYPE_ATTR
public static final short TYPE_ELEMENT
public static final short TYPE_DOCUMENT
Constructor Detail |
---|
public XObject()
Method Detail |
---|
public static final XObject theENDObject()
public abstract short getType()
public abstract boolean isAtomic()
public abstract boolean isDOM()
public abstract XDOMObject getParentNode()
public abstract XDocument getOwnerDocument(IRepository repository)
public abstract XElement getDocumentElement()
public abstract XString pathTo(XObject o)
public final XString getLabel()
public abstract XString getNodeName()
public abstract org.w3c.dom.Node createDOMClone()
abstract boolean booleanValue() throws CastException
CastException
abstract int intValue() throws CastException
CastException
abstract double doubleValue() throws CastException
CastException
abstract java.lang.String stringValue()
abstract java.lang.String shortText()
abstract java.lang.String fullText()
public final XBoolean asBoolean()
public final XInteger asInteger()
public final XDouble asDouble()
public final XString asString()
public final XString getFullText()
public abstract boolean valueCompare(XObject o)
public static final boolean valueCompare(XObject o1, XObject o2)
public static final boolean isTRUE(XObject o)
public static final boolean isFALSE(XObject o)
public static final boolean isEND(XObject o)
public abstract void print(XObjectWriter w)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |