Package io.vertigo.commons.script
Enum SeparatorType
- java.lang.Object
-
- java.lang.Enum<SeparatorType>
-
- io.vertigo.commons.script.SeparatorType
-
- All Implemented Interfaces:
Serializable
,Comparable<SeparatorType>
public enum SeparatorType extends Enum<SeparatorType>
Type de séparateur. Permet de définir les types de séparateurs utilisés dans les fichiers.- Author:
- pchretien
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEGIN_SEPARATOR_CLASSIC
Début d'une balise d'évaluation classique.static String
END_SEPARATOR_CLASSIC
Fin d'une balise d'évaluation classique.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptSeparator
getSeparator()
static SeparatorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SeparatorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
XML
public static final SeparatorType XML
Séparateurs de type XML/HTML.
-
CLASSIC
public static final SeparatorType CLASSIC
Séparateur de type text.
-
XML_CODE
public static final SeparatorType XML_CODE
Séparateur de code dans du XML.
-
-
Field Detail
-
BEGIN_SEPARATOR_CLASSIC
public static final String BEGIN_SEPARATOR_CLASSIC
Début d'une balise d'évaluation classique.- See Also:
- Constant Field Values
-
END_SEPARATOR_CLASSIC
public static final String END_SEPARATOR_CLASSIC
Fin d'une balise d'évaluation classique.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SeparatorType[] 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 (SeparatorType c : SeparatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SeparatorType 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
-
getSeparator
public ScriptSeparator getSeparator()
- Returns:
- Liste des ScriptSeparator pour ce SeparatorType.
-
-