| |
|
| java.lang.Object org.griphyn.vdl.annotation.Tuple org.griphyn.vdl.annotation.TupleBoolean
TupleBoolean | public class TupleBoolean extends Tuple (Code) | | This simple class defines the boolean 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 | TupleBoolean(String key, boolean value) Constructs an instance of a boolean tuple. |
Method Summary | |
public boolean | getBoolean() 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 | setBoolean(boolean value) Overwrites the current value of the value part. | public void | setValue(Object value) Generic interface to set a value in an instance. |
TupleBoolean | public TupleBoolean(String key, boolean value)(Code) | | Constructs an instance of a boolean tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the boolean 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.
|
setBoolean | public void setBoolean(boolean value)(Code) | | Overwrites the current value of the value part.
Parameters: value - is the new value to use from now on. See Also: TupleBoolean.getBoolean() |
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: TupleBoolean.getValue() exception: ClassCastException - if the actual argument type of the valueis incompatible with the value maintained by the instance. |
|
|
|