fi.hut.tml.xsmiles.mlfc.xforms.data
Class DBoolean

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.data.DData
      extended byfi.hut.tml.xsmiles.mlfc.xforms.data.DBoolean
All Implemented Interfaces:
Data

public class DBoolean
extends DData
implements Data


Field Summary
protected  java.lang.Boolean booleanValue
           
static java.lang.String SCHEMA_FALSE
           
static java.lang.String SCHEMA_TRUE
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.data.DData
datatype
 
Constructor Summary
DBoolean(short dtype)
           
 
Method Summary
protected  void clearValue()
          instructs subclass to set value to null, this is used for invalid values
protected  boolean setValueFromDisplayInternal(java.lang.String displayValue)
          set the value from a display string
protected  void setValueFromObjectInternal(java.lang.Object obj)
          set the value as a Java Object
protected  void setValueFromSchemaInternal(java.lang.String displayValue)
          set the value from a Schema string
protected  java.lang.String toDisplayValueInternal()
          get the display value (e.g.
protected  java.lang.Object toObjectInternal()
          get the java object corresponding to the value
protected  java.lang.String toSchemaStringInternal()
          get a schema compatible string from this data.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.data.DData
getDataType, getInvalidValue, isValid, setInvalidString, setValid, setValueFromDisplay, setValueFromObject, setValueFromSchema, toDisplayValue, toObject, toSchemaString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.xforms.data.Data
getDataType, getInvalidValue, isValid, setInvalidString, setValid, setValueFromDisplay, setValueFromObject, setValueFromSchema, toDisplayValue, toObject, toSchemaString
 

Field Detail

SCHEMA_TRUE

public static final java.lang.String SCHEMA_TRUE
See Also:
Constant Field Values

SCHEMA_FALSE

public static final java.lang.String SCHEMA_FALSE
See Also:
Constant Field Values

booleanValue

protected java.lang.Boolean booleanValue
Constructor Detail

DBoolean

public DBoolean(short dtype)
Method Detail

setValueFromObjectInternal

protected void setValueFromObjectInternal(java.lang.Object obj)
set the value as a Java Object

Specified by:
setValueFromObjectInternal in class DData

setValueFromDisplayInternal

protected boolean setValueFromDisplayInternal(java.lang.String displayValue)
set the value from a display string

Specified by:
setValueFromDisplayInternal in class DData

setValueFromSchemaInternal

protected void setValueFromSchemaInternal(java.lang.String displayValue)
set the value from a Schema string

Specified by:
setValueFromSchemaInternal in class DData

toDisplayValueInternal

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

Specified by:
toDisplayValueInternal in class DData

toSchemaStringInternal

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

Specified by:
toSchemaStringInternal in class DData

toObjectInternal

protected java.lang.Object toObjectInternal()
get the java object corresponding to the value

Specified by:
toObjectInternal in class DData

clearValue

protected void clearValue()
instructs subclass to set value to null, this is used for invalid values

Specified by:
clearValue in class DData


X-Smiles 1.2