Class DateDataTypeTransformer
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.type.DateDataTypeTransformer
-
- All Implemented Interfaces:
DmnDataTypeTransformer
public class DateDataTypeTransformer extends java.lang.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 java.lang.String
formatPattern
-
Constructor Summary
Constructors Constructor Description DateDataTypeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedValue
transform(java.lang.Object value)
Transform the given value.protected java.util.Date
transformString(java.lang.String value)
protected DmnEngineException
unsupportedType(java.lang.Object value)
-
-
-
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 interfaceDmnDataTypeTransformer
- 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)
-
-