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 Details

    • FormatterTelephone

      public FormatterTelephone(String args)
      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

      public String stringToValue(String strValue, io.vertigo.core.lang.BasicType dataType)
      Specified by:
      stringToValue in interface io.vertigo.datamodel.smarttype.definitions.Formatter
    • valueToString

      public String valueToString(Object objValue, io.vertigo.core.lang.BasicType dataType)
      Specified by:
      valueToString in interface io.vertigo.datamodel.smarttype.definitions.Formatter