org.apache.myfaces.tobago.util
Enum FacesVersion

java.lang.Object
  extended by java.lang.Enum<FacesVersion>
      extended by org.apache.myfaces.tobago.util.FacesVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FacesVersion>

public enum FacesVersion
extends java.lang.Enum<FacesVersion>


Enum Constant Summary
VERSION_11
           
VERSION_12
           
VERSION_20
           
 
Method Summary
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 FacesVersion valueOf(java.lang.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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Method Detail

values

public static final FacesVersion[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static FacesVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

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


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.