cdqa.object

Class XAtomic

Known Direct Subclasses:
End, XBoolean, XNumber, XString

public abstract class XAtomic
extends XObject

abstract class XAtomic extends XObject
Author:
simonkm

Field Summary

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

Node
createDOMClone()
creates a DOM representation of this object
(package private) String
fullText()
XElement
getDocumentElement()
The root element of the document this object belongs to, if any.
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.
XDocument
getOwnerDocument(IRepository repository)
The document this object belongs to, if any.
XDOMObject
getParentNode()
Returns the parent object of this object null if this object has no parent
boolean
isAtomic()
Returns true iff this object is atomic
boolean
isDOM()
Returns true iff this object is a DOM object
XString
pathTo(XObject o)
Returns the path to this object.
void
print(XObjectWriter w)
output
(package private) String
shortText()

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

createDOMClone

public final Node createDOMClone()
creates a DOM representation of this object
Overrides:
createDOMClone in interface XObject

fullText

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

getDocumentElement

public final XElement getDocumentElement()
The root element of the document this object belongs to, if any. null otherwise.
Overrides:
getDocumentElement in interface XObject

getNodeName

public final 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. null otherwise
Overrides:
getNodeName in interface XObject

getOwnerDocument

public final XDocument getOwnerDocument(IRepository repository)
The document this object belongs to, if any. null otherwise
Overrides:
getOwnerDocument in interface XObject

getParentNode

public final XDOMObject getParentNode()
Returns the parent object of this object null if this object has no parent
Overrides:
getParentNode in interface XObject

isAtomic

public final boolean isAtomic()
Returns true iff this object is atomic
Overrides:
isAtomic in interface XObject

isDOM

public final boolean isDOM()
Returns true iff this object is a DOM object
Overrides:
isDOM 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

print

public final void print(XObjectWriter w)
output
Overrides:
print in interface XObject

shortText

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