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