Package org.apache.myfaces.tobago.util
Enum FacesVersion
- All Implemented Interfaces:
Serializable
,Comparable<FacesVersion>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
Does the JSF is version 1.2 or higherstatic boolean
Does the JSF is version 2.0 or higherstatic boolean
Does the JSF is version 2.1 or higherstatic boolean
Does the JSF is version 2.2 or higherstatic boolean
Does the JSF is version 2.3 or higherstatic FacesVersion
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 Details
-
VERSION_11
-
VERSION_12
-
VERSION_20
-
VERSION_21
-
VERSION_22
-
VERSION_23
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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()
-