cdqa.object
Class XAtomic

java.lang.Object
  extended by cdqa.object.XObject
      extended by cdqa.object.XAtomic
Direct Known 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
 
Constructor Summary
XAtomic()
           
 
Method Summary
 org.w3c.dom.Node createDOMClone()
          creates a DOM representation of this object
(package private)  java.lang.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)  java.lang.String shortText()
           
 
Methods inherited from class cdqa.object.XObject
asBoolean, asDouble, asInteger, asString, booleanValue, doubleValue, getFullText, getLabel, getType, intValue, isEND, isFALSE, isTRUE, stringValue, theENDObject, valueCompare, valueCompare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAtomic

public XAtomic()
Method Detail

getParentNode

public final XDOMObject getParentNode()
Description copied from class: XObject
Returns the parent object of this object null if this object has no parent

Specified by:
getParentNode in class XObject

getOwnerDocument

public final XDocument getOwnerDocument(IRepository repository)
Description copied from class: XObject
The document this object belongs to, if any. null otherwise

Specified by:
getOwnerDocument in class XObject

getDocumentElement

public final XElement getDocumentElement()
Description copied from class: XObject
The root element of the document this object belongs to, if any. null otherwise.

Specified by:
getDocumentElement 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

getNodeName

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

Specified by:
getNodeName in class XObject

shortText

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

fullText

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

isAtomic

public final boolean isAtomic()
Returns true iff this object is atomic

Specified by:
isAtomic in class XObject

isDOM

public final boolean isDOM()
Returns true iff this object is a DOM object

Specified by:
isDOM in class XObject

createDOMClone

public final org.w3c.dom.Node createDOMClone()
creates a DOM representation of this object

Specified by:
createDOMClone in class XObject

print

public final void print(XObjectWriter w)
output

Specified by:
print in class XObject