Class BooleanToStringConverter

Object
BooleanToStringConverter
All Implemented Interfaces:
Converter<Boolean,String>, Serializable

public class BooleanToStringConverter extends Object implements Converter<Boolean,String>
Conversor de dados para manipulacao de checkbox alem de valores boleanos.
Author:
Eduardo Frazao
See Also:
  • Constructor Details

    • BooleanToStringConverter

      public BooleanToStringConverter()
    • BooleanToStringConverter

      public BooleanToStringConverter(String forTrue, String forFalse)
  • Method Details

    • convertToModel

      public String convertToModel(Boolean value, Class<? extends String> targetType, Locale locale) throws Converter.ConversionException
      Specified by:
      convertToModel in interface Converter<Boolean,String>
      Throws:
      Converter.ConversionException
    • convertToPresentation

      public Boolean convertToPresentation(String value, Class<? extends Boolean> targetType, Locale locale) throws Converter.ConversionException
      Specified by:
      convertToPresentation in interface Converter<Boolean,String>
      Throws:
      Converter.ConversionException
    • getModelType

      public Class<String> getModelType()
      Specified by:
      getModelType in interface Converter<Boolean,String>
    • getPresentationType

      public Class<Boolean> getPresentationType()
      Specified by:
      getPresentationType in interface Converter<Boolean,String>