|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.DataType
public abstract class DataType
Describes the data type of the database field used by the control. This determines what operations may or may not be performed on that field.
| Field Summary | |
|---|---|
static DataType |
BOOLEAN_TYPE
Boolean data type values are true and false |
static DataType |
DATE_TYPE
Date DataType |
static DataType |
MARKER_TYPE
Marker data type |
static DataType |
NUMBER_TYPE
Number data type (Integer, Double, Float etc) |
static DataType |
TEXT_TYPE
Text data type for strings |
static DataType |
YESNO_TYPE
Yes/No Data Type whose values are Y/N |
| Constructor Summary | |
|---|---|
DataType()
|
|
| Method Summary | |
|---|---|
void |
addTypeValue(java.lang.String id,
java.lang.String val)
Adds a subvalue that makes up complex types such as Drop Down Lists or other such types |
java.lang.Class |
getDataTypeClass()
|
int |
getTypeid()
|
java.lang.String |
getTypename()
Returns the actual data type name or description for this data type |
java.lang.String |
getTypeValue(java.lang.String id)
Returns the subvalue from the list of subvalues that are relevant for this Data type |
protected java.util.Map |
getTypeValues()
Returns an Iterarable list of all type values. |
abstract java.lang.String |
getXMLOutput()
Constructs and returns the XML output that represents this subelement of the |
void |
setDataTypeClass(java.lang.Class dataTypeClass)
|
protected void |
setTypeid(int typeid)
|
void |
setTypename(java.lang.String rhs)
Set the datatyep name e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DataType NUMBER_TYPE
public static final DataType TEXT_TYPE
public static final DataType YESNO_TYPE
public static final DataType BOOLEAN_TYPE
public static final DataType DATE_TYPE
public static final DataType MARKER_TYPE
| Constructor Detail |
|---|
public DataType()
| Method Detail |
|---|
public abstract java.lang.String getXMLOutput()
public void setTypename(java.lang.String rhs)
public java.lang.String getTypename()
public void addTypeValue(java.lang.String id,
java.lang.String val)
id - The ID of the Type Value of this data typeval - The actual subvalue of this data type -- relevant for complex typespublic java.lang.String getTypeValue(java.lang.String id)
id - The ID of the subfield to be retrieved.
protected java.util.Map getTypeValues()
public java.lang.Class getDataTypeClass()
public void setDataTypeClass(java.lang.Class dataTypeClass)
public int getTypeid()
protected void setTypeid(int typeid)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||