cdqa.object
Class XAttr

java.lang.Object
  extended by cdqa.object.XObject
      extended by cdqa.object.XDOMObject
          extended by cdqa.object.XAttr

public final class XAttr
extends XDOMObject

The XAttr class defines a wrapper for Attr DOM 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 XAttr create(org.w3c.dom.Attr a)
           
static XAttr create(org.w3c.dom.Node n)
           
(package private)  java.lang.String fullText()
           
 short getType()
          Returns the type of this object.
 XString pathTo(XObject o)
          Returns the path to this object.
(package private)  java.lang.String shortText()
           
(package private)  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

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

valueCompare

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

stringValue

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

shortText

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

fullText

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

create

public static XAttr create(org.w3c.dom.Attr a)

create

public static XAttr create(org.w3c.dom.Node n)