org.apache.beehive.netui.pageflow.annotations
Enum Jpf.ValidatorVersion

Object
  extended by Enum<Jpf.ValidatorVersion>
      extended by Jpf.ValidatorVersion
All Implemented Interfaces:
Serializable, Comparable<Jpf.ValidatorVersion>
Enclosing interface:
Jpf

public static enum Jpf.ValidatorVersion
extends Enum<Jpf.ValidatorVersion>

Enumeration used by Jpf.Controller.validatorVersion() to determine the version of Commons Validator that is being used. This affects the format of generated Commons Validator configuration files.


Enum Constant Summary
oneOne
          Indicates that Commons Validator version 1.1 is being used.
oneZero
          Indicates that Commons Validator version 1.0 is being used.
 
Method Summary
static Jpf.ValidatorVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Jpf.ValidatorVersion[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

oneZero

public static final Jpf.ValidatorVersion oneZero
Indicates that Commons Validator version 1.0 is being used.


oneOne

public static final Jpf.ValidatorVersion oneOne
Indicates that Commons Validator version 1.1 is being used.

Method Detail

values

public static final Jpf.ValidatorVersion[] 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(Jpf.ValidatorVersion c : Jpf.ValidatorVersion.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Jpf.ValidatorVersion 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 name