public final class DateAdapter extends Object implements Transformer<Date,String>
SimpleDateFormat| Constructor and Description |
|---|
DateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Class<Date> |
getModelType()
Returns the class of the values in the model side.
|
Class<String> |
getViewType()
Returns the class of the values in the view side.
|
String |
modelToView(Date valueFromModel)
Convert and/or validate a value coming from the model to the type and/or format needed in the view.
|
Date |
viewToModel(String valueFromView)
Convert and/or validate a value coming from the view to the type and/or format needed in the model.
|
public String pattern
public Date viewToModel(String valueFromView)
TransformerviewToModel in interface Transformer<Date,String>valueFromView - A value coming from de viewpublic String modelToView(Date valueFromModel)
TransformermodelToView in interface Transformer<Date,String>valueFromModel - A value coming from the modelpublic Class<Date> getModelType()
TransformergetModelType in interface Transformer<Date,String>public Class<String> getViewType()
TransformergetViewType in interface Transformer<Date,String>Copyright © 2015 Uqbar Project. All rights reserved.