Class CFDataConvertor


  • public abstract class CFDataConvertor
    extends java.lang.Object
    Data convertor for particular field type. It's used mainly during expression validation.
    • Constructor Summary

      Constructors 
      Constructor Description
      CFDataConvertor()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean checkDataAcceptance​(java.lang.Object value)
      Check whether value is accepted.
      abstract java.lang.Object convert​(java.lang.Object value)
      Convert value to be suitable for given field type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CFDataConvertor

        public CFDataConvertor()
    • Method Detail

      • checkDataAcceptance

        public abstract boolean checkDataAcceptance​(java.lang.Object value)
        Check whether value is accepted.
        Parameters:
        value - value to be tested
        Returns:
        true if the value is accepted, false otherwise
      • convert

        public abstract java.lang.Object convert​(java.lang.Object value)
        Convert value to be suitable for given field type.
        Parameters:
        value - value to be converted
        Returns:
        converted value according to this field type