cdqa.object
Class XElement
java.lang.Object
cdqa.object.XObject
cdqa.object.XDOMObject
cdqa.object.XElement
public final class XElement
- extends XDOMObject
The XElement class defines a wrapper for DOM Element interface
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 |
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
- parentNode
- 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