|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.xforms.data.DData
This class encapsulates the handling of invalid values, otherwise the subclasses will handle all conversion
| Field Summary | |
protected short |
datatype
|
| Constructor Summary | |
DData(short dtype)
|
|
| Method Summary | |
protected abstract void |
clearValue()
instructs subclass to set value to null, this is used for invalid values |
short |
getDataType()
|
java.lang.String |
getInvalidValue()
get the invalid value as a string |
boolean |
isValid()
is the current value valid according to the datatype |
void |
setInvalidString(java.lang.String s)
set the invalid value as a string |
void |
setValid(boolean v)
set the validity status |
void |
setValueFromDisplay(java.lang.String displayValue)
set the value from a display string |
protected abstract boolean |
setValueFromDisplayInternal(java.lang.String displayValue)
internal method for setting the value from a display string |
void |
setValueFromObject(java.lang.Object obj)
set the value as a Java Object |
protected abstract void |
setValueFromObjectInternal(java.lang.Object obj)
internal method for setting the value as a Java Object |
void |
setValueFromSchema(java.lang.String displayValue)
set the value from a Schema string |
protected abstract void |
setValueFromSchemaInternal(java.lang.String displayValue)
internal method for setting the value from a Schema string |
java.lang.String |
toDisplayValue()
get the display value (e.g. |
protected abstract java.lang.String |
toDisplayValueInternal()
get the display value (e.g. |
java.lang.Object |
toObject()
get the java object corresponding to the value |
protected abstract java.lang.Object |
toObjectInternal()
get the java object corresponding to the value |
java.lang.String |
toSchemaString()
get a schema compatible string from this data. |
protected abstract java.lang.String |
toSchemaStringInternal()
get a schema compatible string from this data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected short datatype
| Constructor Detail |
public DData(short dtype)
| Method Detail |
public short getDataType()
getDataType in interface Datapublic boolean isValid()
isValid in interface Datapublic java.lang.String getInvalidValue()
getInvalidValue in interface Datapublic void setValid(boolean v)
setValid in interface Datapublic void setInvalidString(java.lang.String s)
Data
setInvalidString in interface Datapublic final java.lang.String toDisplayValue()
toDisplayValue in interface Datapublic java.lang.String toSchemaString()
toSchemaString in interface Datapublic java.lang.Object toObject()
toObject in interface Datapublic final void setValueFromObject(java.lang.Object obj)
setValueFromObject in interface Datapublic final void setValueFromDisplay(java.lang.String displayValue)
setValueFromDisplay in interface Datapublic final void setValueFromSchema(java.lang.String displayValue)
setValueFromSchema in interface Dataprotected abstract void clearValue()
protected abstract java.lang.String toDisplayValueInternal()
protected abstract void setValueFromObjectInternal(java.lang.Object obj)
protected abstract boolean setValueFromDisplayInternal(java.lang.String displayValue)
protected abstract void setValueFromSchemaInternal(java.lang.String displayValue)
protected abstract java.lang.String toSchemaStringInternal()
protected abstract java.lang.Object toObjectInternal()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||