| |
|
| java.lang.Object org.griphyn.vdl.annotation.Tuple org.griphyn.vdl.annotation.TupleFloat
TupleFloat | public class TupleFloat extends Tuple (Code) | | This simple class defines the double values for the values at the
heart of Yong's annotations.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | TupleFloat(String key, double value) Constructs an instance of a double tuple. |
Method Summary | |
public double | getDouble() Obtains the current value of the value part. | public int | getType() Returns the type of the value as SQL Type.
a constant from the set of SQL types. | public String | getTypeString() Returns the string representation of the type. | public Object | getValue() Return generically the value wrapped into a Java class. | public void | setDouble(double value) Overwrites the current value of the value part. | public void | setValue(Object value) Generic interface to set a value in an instance. |
TupleFloat | public TupleFloat(String key, double value)(Code) | | Constructs an instance of a double tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the double value of the annotation. |
getType | public int getType()(Code) | | Returns the type of the value as SQL Type.
a constant from the set of SQL types. See Also: java.sql.Types |
getTypeString | public String getTypeString()(Code) | | Returns the string representation of the type.
|
setDouble | public void setDouble(double value)(Code) | | Overwrites the current value of the value part.
Parameters: value - is the new value to use from now on. See Also: TupleFloat.getDouble() |
setValue | public void setValue(Object value) throws ClassCastException(Code) | | Generic interface to set a value in an instance. Note that this
action may fail, if the instance is of an incompatible type.
Parameters: value - is the data object to set. See Also: TupleFloat.getValue() exception: ClassCastException - if the actual argument type of the valueis incompatible with the value maintained by the instance. exception: NumberFormatException - if the String does not containsomething that is parsable into a double value. |
|
|
|