public class DateTransformer extends Object implements PropertyTransformer<Date>
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
DATE_AND_TIME_FORMAT |
static SimpleDateFormat |
DATE_FORMAT
Date Formats
|
static DateTransformer |
SHARED_INSTANCE
Shared instance of this transformer.
|
| Constructor and Description |
|---|
DateTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Date |
transform(String value,
Field field)
This method actually transforms value to object instance
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final DateTransformer SHARED_INSTANCE
public static final SimpleDateFormat DATE_FORMAT
public static final SimpleDateFormat DATE_AND_TIME_FORMAT
public Date transform(String value, Field field) throws TransformationException
transform in interface PropertyTransformer<Date>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something went wrongPropertyTransformer.transform(java.lang.String, java.lang.reflect.Field)Copyright © 2014–2015. All rights reserved.