pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.result
Enum FormResult.FormFieldStatus

java.lang.Object
  extended by java.lang.Enum<FormResult.FormFieldStatus>
      extended by org.torweg.pulse.result.FormResult.FormFieldStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FormResult.FormFieldStatus>
Enclosing class:
FormResult

public static enum FormResult.FormFieldStatus
extends java.lang.Enum<FormResult.FormFieldStatus>

The different form field status types.

Version:
$Revision: 1391 $
Author:
Christian Schatt

Enum Constant Summary
CONFIRMATION_FAILURE
          The given value confirmation does not match the given value.
INVALID_CHAR
          The given value contains invalid chars.
OK
          Either the given value is OK, or no value has been given and none is required.
REGEX_FAILURE
          The given value did not pass the regex check.
REQUIRED
          No value has been given, but a value is required.
TOO_LONG
          The given value is too long.
TOO_SHORT
          The given value is too short.
 
Method Summary
static FormResult.FormFieldStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FormResult.FormFieldStatus[] 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

OK

public static final FormResult.FormFieldStatus OK
Either the given value is OK, or no value has been given and none is required.


REQUIRED

public static final FormResult.FormFieldStatus REQUIRED
No value has been given, but a value is required.


TOO_SHORT

public static final FormResult.FormFieldStatus TOO_SHORT
The given value is too short.


TOO_LONG

public static final FormResult.FormFieldStatus TOO_LONG
The given value is too long.


INVALID_CHAR

public static final FormResult.FormFieldStatus INVALID_CHAR
The given value contains invalid chars.


REGEX_FAILURE

public static final FormResult.FormFieldStatus REGEX_FAILURE
The given value did not pass the regex check.


CONFIRMATION_FAILURE

public static final FormResult.FormFieldStatus CONFIRMATION_FAILURE
The given value confirmation does not match the given value.

Method Detail

values

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

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

valueOf

public static FormResult.FormFieldStatus 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