|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATDataValueImp
The class that represents the value of one cell in an XATTable The value is an atomic value or a Collection and can be a Dom or a String datatype. Methods are provided that will allow one type to be converted to another.
Field Summary | |
protected java.util.Vector |
collection
The type be a vector of XATDataValue. |
protected java.lang.Object |
value
The type be an atomic value instead of a collection. |
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
stats,
statsPresent |
Constructor Summary | |
XATDataValueImp()
The default XATDataValueImp constructor. |
|
XATDataValueImp(java.lang.Object obj)
The XATDataValueImp constructor. |
Method Summary | |
void |
add(java.lang.Object obj)
If you use add, means this XATDataValue is a collection. |
java.lang.Boolean |
convertToBoolean()
Converts the XATValue into a Boolean object. |
java.util.Vector |
convertToCollection()
This method will take whatever the value is and converts it into a Collection (Vector) |
org.w3c.dom.Node |
convertToDOM()
Convert the XATDataValue as a DOM object, and construct as an XML Node. |
protected java.lang.Object |
convertToDOM(java.lang.Object o)
Convert the given object as a DOM object, and construct as an XML Node. |
java.lang.Double |
convertToDouble()
Convert the XATDataValue into a Double object. |
java.lang.String |
convertToString()
Converts the XATValue into a String. |
protected java.lang.Object |
convertToString(java.lang.Object o)
Converts the given object into a String. |
java.lang.String |
getId()
Get the Hash code of this XATDataValue. |
java.lang.Object |
getValue()
Get the value of this XATDataValue. |
boolean |
isCollection()
Check whether this XATDataValueImp is a collection or an atomic value. |
boolean |
isNode()
Check whether this XATDataValueImp is an atomic value. |
void |
removeDuplicates()
Remove the duplicated values in a vector. |
java.lang.String |
toString()
Convert the value of this XATDataValueImp into a String with XML format. |
java.lang.String |
toXML()
Convert the value of this XATDataValueImp into a String with XML format. |
java.lang.String |
toXML(java.lang.Object o)
Convert the given object into a String with XML format. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
addStatistic,
compareTo,
getStatistics,
isValidStatistic,
setDefaultProperties,
setDefaultStatistics |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp |
addProperty,
getProperties,
getProperty,
isValidPropertyName,
setNewPropertyValue,
setProperty |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.util.Vector collection
protected java.lang.Object value
Constructor Detail |
public XATDataValueImp()
public XATDataValueImp(java.lang.Object obj)
obj
- The Object used to construct the XATDataValueImp.Method Detail |
public void add(java.lang.Object obj)
obj
- Add a given Object into XATDataValue.public java.lang.Boolean convertToBoolean()
public java.util.Vector convertToCollection()
public org.w3c.dom.Node convertToDOM()
protected java.lang.Object convertToDOM(java.lang.Object o)
public java.lang.Double convertToDouble()
public java.lang.String convertToString()
protected java.lang.Object convertToString(java.lang.Object o)
public java.lang.String getId()
public java.lang.Object getValue()
public boolean isCollection()
public boolean isNode()
public void removeDuplicates()
public java.lang.String toString()
public java.lang.String toXML()
public java.lang.String toXML(java.lang.Object o)
o
- The given object will be converted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |