| |
|
| java.lang.Object org.griphyn.vdl.annotation.Tuple org.griphyn.vdl.annotation.TupleString
TupleString | public class TupleString extends Tuple (Code) | | This simple class defines the String values for the values at the
heart of Yong's annotations.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Method Summary | |
public String | getString() 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 as a copy of the original. | public void | setString(String value) Overwrites the current value of the value part. | public void | setValue(Object value) Generic interface to set a value in an instance. |
TupleString | public TupleString(String key, String value)(Code) | | Constructs an instance of a String tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the String 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.
|
setString | public void setString(String value)(Code) | | Overwrites the current value of the value part.
Parameters: value - is the new value to use from now on. See Also: TupleString.getString() |
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: TupleString.getValue() exception: ClassCastException - if the actual argument type of the valueis incompatible with the value maintained by the instance. |
|
|
|