fi.hut.tml.xsmiles.mlfc.xforms.data
Interface Data

All Known Implementing Classes:
DBoolean, DData, DDate, DDateTime, DDecimal, DInteger, DString

public interface Data


Method Summary
 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 valid)
          sets the current value valid or invalid
 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 displayValue)
          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.
 

Method Detail

setValueFromObject

public void setValueFromObject(java.lang.Object obj)
set the value as a Java Object


setValueFromDisplay

public void setValueFromDisplay(java.lang.String displayValue)
set the value from a display string


setValueFromSchema

public void setValueFromSchema(java.lang.String displayValue)
set the value from a Schema string


toDisplayValue

public java.lang.String toDisplayValue()
get the display value (e.g. 3,12 / 3.12 depending on the locale)


toSchemaString

public java.lang.String toSchemaString()
get a schema compatible string from this data. E.g. From a date you would get a String in xsd:date format


getDataType

public short getDataType()

toObject

public java.lang.Object toObject()
get the java object corresponding to the value


isValid

public boolean isValid()
is the current value valid according to the datatype


setValid

public void setValid(boolean valid)
sets the current value valid or invalid


getInvalidValue

public java.lang.String getInvalidValue()
get the invalid value as a string


setInvalidString

public void setInvalidString(java.lang.String s)
set the invalid value as a string



X-Smiles 1.2