public enum FacesVersion extends Enum<FacesVersion>
Enum Constant and Description |
---|
VERSION_11 |
VERSION_12 |
VERSION_20 |
VERSION_21 |
VERSION_22 |
Modifier and Type | Method and Description |
---|---|
static boolean |
isMojarra() |
static boolean |
isMyfaces() |
static boolean |
supports12()
Does the JSF is version 1.2 or higher
|
static boolean |
supports20()
Does the JSF is version 2.0 or higher
|
static boolean |
supports21()
Does the JSF is version 2.1 or higher
|
static boolean |
supports22()
Does the JSF is version 2.2 or higher
|
static 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.
|
public static final FacesVersion VERSION_11
public static final FacesVersion VERSION_12
public static final FacesVersion VERSION_20
public static final FacesVersion VERSION_21
public static final FacesVersion VERSION_22
public static FacesVersion[] values()
for (FacesVersion c : FacesVersion.values()) System.out.println(c);
public static FacesVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean supports12()
public static boolean supports20()
public static boolean supports21()
public static boolean supports22()
public static boolean isMojarra()
public static boolean isMyfaces()
Copyright © 2002-2018 The Apache Software Foundation. All Rights Reserved.