Enum Class FormatterString.Mode

java.lang.Object
java.lang.Enum<FormatterString.Mode>
io.vertigo.basics.formatter.FormatterString.Mode
All Implemented Interfaces:
Serializable, Comparable<FormatterString.Mode>, Constable
Enclosing class:
FormatterString

public static enum FormatterString.Mode extends Enum<FormatterString.Mode>
Mode utilisé. Pour tous les mode un "trim" à droite et à gauche est effectué. Le trim à droite est obligatoire. Concernant le trim à gauche, il est possible de s'en passer il convient alors de créer un formatter ad hoc.
  • Enum Constant Details

    • BASIC

      public static final FormatterString.Mode BASIC
      Aucun formattage.
    • UPPER

      public static final FormatterString.Mode UPPER
      Met en majuscules toutes les lettres.
    • LOWER

      public static final FormatterString.Mode LOWER
      Met en minuscules toutes les lettres.
    • UPPER_FIRST

      public static final FormatterString.Mode UPPER_FIRST
      Met en majuscules les premières lettres de chaque mot et en minuscules les suivantes Les séparateurs utilisés sont l'espace, "_" et "-.
  • Method Details

    • values

      public static FormatterString.Mode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FormatterString.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null