Interface ISimpleDataTypeExtension


public interface ISimpleDataTypeExtension
Extension to add own simple data types into the value processing:

The communication between the controls on the client/browser side and the server is based on String values. These values have to be converted to match the expressions (e.g. the setter- and getter-methods behind the expression). Example: if an expression is pointing to a setXxxx(Date value) then the String value that is transferred needs to be converted to a Date value.

All Java basic simple data types are covered by the default CaptainCasa processing. But you may add own ones by implementing this interface.
  • Method Details

    • checkIfClassIsSimpleDataType

      boolean checkIfClassIsSimpleDataType(Class c)
      There may be several implementations of this interface which are used in parallel - so your implementation is asked if it is responsible for a certain data type.
    • convertStringIntoSimpleDataTypeObject

      Object convertStringIntoSimpleDataTypeObject(String value, Class c)
      The string value coming from the client side needs to be transfered into the corresponding simple data type object.
    • convertSimpleDataTypeObjectIntoString

      String convertSimpleDataTypeObjectIntoString(Object o)
      The simple data type object needs to be transferred into a String value that is sent to the client side.