Class DateDataTypeTransformer
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.type.DateDataTypeTransformer
-
- All Implemented Interfaces:
DmnDataTypeTransformer
public class DateDataTypeTransformer extends Object implements DmnDataTypeTransformer
Transform values of typeDate
andString
intoDateValue
which contains date and time. A String should have the formatyyyy-MM-dd'T'HH:mm:ss
.- Author:
- Philipp Ossler
-
-
Field Summary
Fields Modifier and Type Field Description protected String
formatPattern
-
Constructor Summary
Constructors Constructor Description DateDataTypeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedValue
transform(Object value)
Transform the given value.protected Date
transformString(String value)
protected DmnEngineException
unsupportedType(Object value)
-
-
-
Field Detail
-
formatPattern
protected String formatPattern
-
-
Method Detail
-
transform
public TypedValue transform(Object value) throws IllegalArgumentException
Description copied from interface:DmnDataTypeTransformer
Transform the given value.- Specified by:
transform
in interfaceDmnDataTypeTransformer
- Parameters:
value
- of any type- Returns:
- value of the specific type
- Throws:
IllegalArgumentException
- if the value can not be transformed
-
unsupportedType
protected DmnEngineException unsupportedType(Object value)
-
-