Package io.vertigo.basics.formatter
Enum FormatterString.Mode
- java.lang.Object
-
- java.lang.Enum<FormatterString.Mode>
-
- io.vertigo.basics.formatter.FormatterString.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<FormatterString.Mode>
- 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 Summary
Enum Constants Enum Constant Description BASIC
Aucun formattage.LOWER
Met en minuscules toutes les lettres.UPPER
Met en majuscules toutes les lettres.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormatterString.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormatterString.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static FormatterString.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FormatterString.Mode c : FormatterString.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormatterString.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-