Package io.vertigo.basics.formatter
Class FormatterBoolean
- java.lang.Object
-
- io.vertigo.basics.formatter.FormatterBoolean
-
- All Implemented Interfaces:
Formatter
public final class FormatterBoolean extends Object implements Formatter
Gestion des formattages de booléens. Args contient deux arguments séparés par des points virgules ';' Le premier argument est obligatoire il représente le format d'affichage de la valeur vraie. Exemple 1 d'arguments si les ressources ne sont pas toutes externalisées : "OUI ; NON" Exemple 2 d'arguments si les ressources sont externalisées : "TXT_OUI ; TXT_NON"- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description FormatterBoolean(String args)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
stringToValue(String strValue, io.vertigo.core.lang.BasicType dataType)
String
valueToString(Object objValue, io.vertigo.core.lang.BasicType dataType)
-
-
-
Constructor Detail
-
FormatterBoolean
public FormatterBoolean(String args)
Constructor.
-
-
Method Detail
-
valueToString
public String valueToString(Object objValue, io.vertigo.core.lang.BasicType dataType)
- Specified by:
valueToString
in interfaceFormatter
-
stringToValue
public Boolean stringToValue(String strValue, io.vertigo.core.lang.BasicType dataType) throws FormatterException
- Specified by:
stringToValue
in interfaceFormatter
- Throws:
FormatterException
-
-