Class DateDataTypeTransformer

  • All Implemented Interfaces:
    DmnDataTypeTransformer

    public class DateDataTypeTransformer
    extends java.lang.Object
    implements DmnDataTypeTransformer
    Transform values of type Date and String into DateValue which contains date and time. A String should have the format yyyy-MM-dd'T'HH:mm:ss.
    Author:
    Philipp Ossler
    • Field Detail

      • formatPattern

        protected java.lang.String formatPattern
    • Constructor Detail

      • DateDataTypeTransformer

        public DateDataTypeTransformer()
    • Method Detail

      • transform

        public TypedValue transform​(java.lang.Object value)
                             throws java.lang.IllegalArgumentException
        Description copied from interface: DmnDataTypeTransformer
        Transform the given value.
        Specified by:
        transform in interface DmnDataTypeTransformer
        Parameters:
        value - of any type
        Returns:
        value of the specific type
        Throws:
        java.lang.IllegalArgumentException - if the value can not be transformed
      • transformString

        protected java.util.Date transformString​(java.lang.String value)
      • unsupportedType

        protected DmnEngineException unsupportedType​(java.lang.Object value)