cdqa.object
Class XElement

java.lang.Object
  extended by cdqa.object.XObject
      extended by cdqa.object.XDOMObject
          extended by cdqa.object.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 XElement create(org.w3c.dom.Element e)
           
static XElement create(org.w3c.dom.Node n)
           
(package private)  java.lang.String fullText()
           
 short getType()
          Returns the type of this object.
 java.lang.String path()
           
static java.lang.String Path(org.w3c.dom.Node child)
           
static java.lang.String PathTo(org.w3c.dom.Node parent, org.w3c.dom.Node child)
           
 XString pathTo(XObject o)
          returns a XString representing the path between this object and o
 java.util.Vector pathToV(XObject o)
           
(package private)  java.lang.String shortText()
           
 java.lang.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, getFullText, getLabel, isEND, isFALSE, isTRUE, theENDObject, valueCompare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public short getType()
Description copied from class: XObject
Returns the type of this object. see the enumeration in XObject class

Specified by:
getType in class XObject

path

public final java.lang.String path()
Returns:

Path

public static final java.lang.String Path(org.w3c.dom.Node child)
Parameters:
child -
Returns:

PathTo

public static final java.lang.String PathTo(org.w3c.dom.Node parent,
                                            org.w3c.dom.Node child)
Parameters:
Node - parent
Node - child

pathToV

public java.util.Vector pathToV(XObject o)

pathTo

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

Specified by:
pathTo in class XObject

valueCompare

public boolean valueCompare(XObject o)
Specified by:
valueCompare in class XObject

stringValue

public java.lang.String stringValue()
Specified by:
stringValue 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

create

public static XElement create(org.w3c.dom.Element e)

create

public static XElement create(org.w3c.dom.Node n)
Parameters:
n -
Returns:
XElement