cdqa.object

Class XDOMObject

Known Direct Subclasses:
XAttr, XDocument, XElement, XText

public abstract class XDOMObject
extends XObject

XDOMObject based on XObject
Author:
simonkm

Field Summary

(package private) Node
n
the wrapped node

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

XDOMObject(Node n)

Method Summary

(package private) boolean
booleanValue()
Node
createDOMClone()
creates a clone of this object
static XDOMObject
createXDOMObject(Node n)
factory
(package private) double
doubleValue()
XElement
getDocumentElement()
XString
getNodeName()
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
Node
getWrappedNode()
returns the wrapped node
(package private) int
intValue()
boolean
isAtomic()
Returns true iff this object is atomic
boolean
isDOM()
Returns true iff this object is a DOM object
void
print(XObjectWriter w)
output
void
setWrappedNode(Node n)
String
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

Field Details

n

(package private)  Node n
the wrapped node

Constructor Details

XDOMObject

protected XDOMObject(Node n)

Method Details

booleanValue

(package private) final boolean booleanValue()
            throws CastException
Overrides:
booleanValue in interface XObject

createDOMClone

public Node createDOMClone()
creates a clone of this object
Overrides:
createDOMClone in interface XObject

createXDOMObject

public static XDOMObject createXDOMObject(Node n)
factory

doubleValue

(package private) final double doubleValue()
            throws CastException
Overrides:
doubleValue in interface XObject

getDocumentElement

public final XElement getDocumentElement()
Overrides:
getDocumentElement in interface XObject

getNodeName

public XString getNodeName()
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

getWrappedNode

public final Node getWrappedNode()
returns the wrapped node
Returns:

intValue

(package private) final int intValue()
            throws CastException
Overrides:
intValue 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

print

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

setWrappedNode

public final void setWrappedNode(Node n)

toString

public String toString()