cdqa.object

Class XElement


public final class XElement
extends XDOMObject

The XElement class defines a wrapper for DOM Element interface

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 String
Path(Node child)
static String
PathTo(Node parent, Node child)
static XElement
create(Element e)
static XElement
create(Node n)
(package private) String
fullText()
short
getType()
Returns the type of this object.
String
path()
XString
pathTo(XObject o)
returns a XString representing the path between this object and o
Vector
pathToV(XObject o)
(package private) String
shortText()
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, 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

Path

public static final String Path(Node child)
Parameters:
child -
Returns:

PathTo

public static final String PathTo(Node parent,
                                  Node child)
Parameters:

create

public static XElement create(Element e)

create

public static XElement create(Node n)
Parameters:
n -
Returns:
XElement

fullText

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

getType

public short getType()
Returns the type of this object. see the enumeration in XObject class
Overrides:
getType in interface XObject

path

public final String path()
Returns:

pathTo

public XString pathTo(XObject o)
returns a XString representing the path between this object and o
Overrides:
pathTo in interface XObject

pathToV

public Vector pathToV(XObject o)

shortText

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

stringValue

public String stringValue()
Overrides:
stringValue in interface XObject

valueCompare

public boolean valueCompare(XObject o)
Overrides:
valueCompare in interface XObject