|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Each variable in a datapool contains a specific type data and this
class represents the types that can be readily handled. The type
information is primarily advisory, variables by definition are not
strongly typed. The type information allows the datapool editor the
ability to flag data that may have been incorrectly specified and
improves the ease of editing values in the datapool. For instance
specifying a TYPE_ENUMERATION allows the editor to use an
editable combobox for manually changing a value rather then requiring
the user to get the spelling correct for each value in the available
value set.
| Field Summary | |
|---|---|
static int |
TYPE_BOOLEAN
The type of a boolean value. |
static int |
TYPE_COMPLEX
The type specification for a complex object, must be a serializable class. |
static java.lang.String |
TYPE_DISPLAY_BOOLEAN
The display string for type of a boolean value. |
static java.lang.String |
TYPE_DISPLAY_COMPLEX
The display string for type specification for a complex object, must be a serializable class. |
static java.lang.String |
TYPE_DISPLAY_ENUMERATION
The display string for type of an enumeration type value. |
static java.lang.String |
TYPE_DISPLAY_NUMBER
The display string for type of a scalar value. |
static java.lang.String |
TYPE_DISPLAY_STRING
The display string for type of a simple String object. |
static int |
TYPE_ENUMERATION
The type of an enumeration type value. |
static int |
TYPE_NUMBER
The type of a scalar value. |
static int |
TYPE_STRING
The type of a simple String object. |
| Method Summary | |
|---|---|
java.lang.String[] |
getEnumerationLiterals()
The set of enumerations literals associated with a enumeration type. |
java.lang.String |
getSuggestedClassName()
The value class name associated with a variable. |
int |
getSuggestedType()
One of the predefined type formats: TYPE_STRING
TYPE_NUMBER
TYPE_BOOLEAN
TYPE_ENUMERATION
TYPE_COMPLEX
|
| Field Detail |
public static final int TYPE_STRING
String object.
public static final int TYPE_NUMBER
public static final int TYPE_BOOLEAN
public static final int TYPE_ENUMERATION
public static final int TYPE_COMPLEX
public static final java.lang.String TYPE_DISPLAY_STRING
String object.
public static final java.lang.String TYPE_DISPLAY_NUMBER
public static final java.lang.String TYPE_DISPLAY_BOOLEAN
public static final java.lang.String TYPE_DISPLAY_ENUMERATION
public static final java.lang.String TYPE_DISPLAY_COMPLEX
| Method Detail |
public int getSuggestedType()
TYPE_STRING,
TYPE_NUMBER,
TYPE_BOOLEAN,
TYPE_ENUMERATION,
TYPE_COMPLEXpublic java.lang.String[] getEnumerationLiterals()
enumeration type. If the
type is not set to
enumeration type then an
appropriate DatapoolException is thrown.
enumeration type.TYPE_ENUMERATIONpublic java.lang.String getSuggestedClassName()
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||