Package org.apache.myfaces.tobago.util
Enum FacesVersion
- java.lang.Object
-
- java.lang.Enum<FacesVersion>
-
- org.apache.myfaces.tobago.util.FacesVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<FacesVersion>
public enum FacesVersion extends Enum<FacesVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_11
VERSION_12
VERSION_20
VERSION_21
VERSION_22
VERSION_23
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isMojarra()
static boolean
isMyfaces()
static boolean
supports12()
Does the JSF is version 1.2 or higherstatic boolean
supports20()
Does the JSF is version 2.0 or higherstatic boolean
supports21()
Does the JSF is version 2.1 or higherstatic boolean
supports22()
Does the JSF is version 2.2 or higherstatic boolean
supports23()
Does the JSF is version 2.3 or higherstatic FacesVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static FacesVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_11
public static final FacesVersion VERSION_11
-
VERSION_12
public static final FacesVersion VERSION_12
-
VERSION_20
public static final FacesVersion VERSION_20
-
VERSION_21
public static final FacesVersion VERSION_21
-
VERSION_22
public static final FacesVersion VERSION_22
-
VERSION_23
public static final FacesVersion VERSION_23
-
-
Method Detail
-
values
public static FacesVersion[] 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 (FacesVersion c : FacesVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FacesVersion 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
-
supports12
public static boolean supports12()
Does the JSF is version 1.2 or higher- Returns:
- Supports 1.2 or higher
-
supports20
public static boolean supports20()
Does the JSF is version 2.0 or higher- Returns:
- Supports 2.0 or higher
-
supports21
public static boolean supports21()
Does the JSF is version 2.1 or higher- Returns:
- Supports 2.1 or higher
-
supports22
public static boolean supports22()
Does the JSF is version 2.2 or higher- Returns:
- Supports 2.2 or higher
-
supports23
public static boolean supports23()
Does the JSF is version 2.3 or higher- Returns:
- Supports 2.3 or higher
-
isMojarra
public static boolean isMojarra()
-
isMyfaces
public static boolean isMyfaces()
-
-