Package io.vertigo.basics.formatter
Class FormatterBoolean
java.lang.Object
io.vertigo.basics.formatter.FormatterBoolean
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstringToValue(String strValue, io.vertigo.core.lang.BasicType dataType) valueToString(Object objValue, io.vertigo.core.lang.BasicType dataType)
-
Constructor Details
-
FormatterBoolean
Constructor.
-
-
Method Details
-
valueToString
- Specified by:
valueToStringin interfaceFormatter
-
stringToValue
public Boolean stringToValue(String strValue, io.vertigo.core.lang.BasicType dataType) throws FormatterException - Specified by:
stringToValuein interfaceFormatter- Throws:
FormatterException
-