public class DateDataTypeTransformer extends Object implements DmnDataTypeTransformer
Date
and String
into
DateValue
which contains date and time. A String should have the format
yyyy-MM-dd'T'HH:mm:ss
.Modifier and Type | Field and Description |
---|---|
protected SimpleDateFormat |
format |
Constructor and Description |
---|
DateDataTypeTransformer() |
Modifier and Type | Method and Description |
---|---|
TypedValue |
transform(Object value)
Transform the given value.
|
protected Date |
transformString(String value) |
protected DmnEngineException |
unsupportedType(Object value) |
protected SimpleDateFormat format
public TypedValue transform(Object value) throws IllegalArgumentException
DmnDataTypeTransformer
transform
in interface DmnDataTypeTransformer
value
- of any typeIllegalArgumentException
- if the value can not be transformedprotected DmnEngineException unsupportedType(Object value)
Copyright © 2021. All rights reserved.