edu.wpi.cs.dsrg.xmldb.xat.common.xatnode
Interface XATDataValue

All Known Implementing Classes:
XATDataValueImp

public interface XATDataValue
extends XATValue

 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.  
 

Since:
1.0

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.
 java.lang.Double convertToDouble()
          Convert the XATDataValue into a Double object.
 java.lang.String convertToString()
          Converts the XATValue into a String.
 java.lang.String getId()
          Get the Hash code of this XATDataValue.
 void removeDuplicates()
          Remove the duplicated values in a vector.
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObject
getStatistics, isValidStatistic
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATProperties
getProperties, getProperty, isValidPropertyName, setProperty
 

Method Detail

add

public void add(java.lang.Object obj)
If you use add, means this XATDataValue is a collection. This is the only method that can convert an atomic value into a collection.
Parameters:
obj - Add a given Object into XATDataValue.
Returns:
void
Since:
1.0

convertToBoolean

public java.lang.Boolean convertToBoolean()
Converts the XATValue into a Boolean object.
Returns:
Boolean A boolean object after convert.
Since:
1.0

convertToCollection

public java.util.Vector convertToCollection()
This method will take whatever the value is and converts it into a Collection (Vector)
Returns:
Vector The convert result.
Since:
1.0

convertToDOM

public org.w3c.dom.Node convertToDOM()
Convert the XATDataValue as a DOM object, and construct as an XML Node.
Returns:
Node The convert result.
Since:
1.0

convertToDouble

public java.lang.Double convertToDouble()
Convert the XATDataValue into a Double object.
Returns:
Double The convert result.
Since:
1.0

convertToString

public java.lang.String convertToString()
Converts the XATValue into a String. If the Value is a collection, then one large string is created.
Returns:
String The convert result.
Since:
1.0

getId

public java.lang.String getId()
Get the Hash code of this XATDataValue.
Returns:
String The Hash code of this XATDataValue.
Since:
1.0

removeDuplicates

public void removeDuplicates()
Remove the duplicated values in a vector. The comparison is done by values.
Returns:
void
Since:
1.0