|
|||||||||||
| 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.DString
| Field Summary | |
protected short |
datatype
|
protected boolean |
isValid
|
protected java.lang.String |
stringValue
|
| Constructor Summary | |
DString(short dtype)
|
|
| Method Summary | |
protected 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 |
void |
setValueFromObject(java.lang.Object obj)
set the value as a Java Object |
void |
setValueFromSchema(java.lang.String schemaValue)
set the value from a Schema string |
java.lang.String |
toDisplayValue()
get the display value (e.g. |
java.lang.Object |
toObject()
get the java object corresponding to the value |
java.lang.String |
toSchemaString()
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 java.lang.String stringValue
protected boolean isValid
protected short datatype
| Constructor Detail |
public DString(short dtype)
| Method Detail |
public boolean isValid()
isValid in interface Datapublic void setValueFromObject(java.lang.Object obj)
setValueFromObject in interface Datapublic void setValueFromDisplay(java.lang.String displayValue)
setValueFromDisplay in interface Datapublic void setValueFromSchema(java.lang.String schemaValue)
setValueFromSchema in interface Datapublic java.lang.String toDisplayValue()
toDisplayValue in interface Datapublic java.lang.String toSchemaString()
toSchemaString in interface Datapublic java.lang.Object toObject()
toObject 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 Dataprotected void clearValue()
public short getDataType()
getDataType in interface Data
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||