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 typeDateandStringintoDateValuewhich 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 StringformatPattern
-
Constructor Summary
Constructors Constructor Description DateDataTypeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.camunda.bpm.engine.variable.value.TypedValuetransform(Object value)Transform the given value.protected DatetransformString(String value)protected DmnEngineExceptionunsupportedType(Object value)
-
-
-
Field Detail
-
formatPattern
protected String formatPattern
-
-
Method Detail
-
transform
public org.camunda.bpm.engine.variable.value.TypedValue transform(Object value) throws IllegalArgumentException
Description copied from interface:DmnDataTypeTransformerTransform the given value.- Specified by:
transformin 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)
-
-