Package io.vertigo.easyforms.runner.pack
Class FormatterTelephone
java.lang.Object
io.vertigo.easyforms.runner.pack.FormatterTelephone
- All Implemented Interfaces:
io.vertigo.datamodel.smarttype.definitions.Formatter
public final class FormatterTelephone
extends Object
implements io.vertigo.datamodel.smarttype.definitions.Formatter
Gestion des formattages de téléphone.
Force le +XX ou +33 et les espaces +33 1 2 2 2 2 ou +3 3 2 2 2
- Author:
- npiedeloup
-
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
-
FormatterTelephone
Constructor.- Parameters:
args- liste des formats par préfix, le dernier prend forcément tout les chiffres restants (exemple 0033|+33:+33 # ## ## ## ##;00590|+590:+590 ### ## ## ##;0:0# ## ## ## ##;+1|011:+1 (###) ###-####;+:+## ####;####)
-
-
Method Details
-
stringToValue
- Specified by:
stringToValuein interfaceio.vertigo.datamodel.smarttype.definitions.Formatter
-
valueToString
- Specified by:
valueToStringin interfaceio.vertigo.datamodel.smarttype.definitions.Formatter
-