adapforms.runtime
Enum FormStatus

java.lang.Object
  extended by java.lang.Enum<FormStatus>
      extended by adapforms.runtime.FormStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FormStatus>

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

Represents the current overall status of a FormInstance.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Enum Constant Summary
Incomplete
          The form is partially completed.
IncompleteWithWarnings
          The form is partially completed.
Initializing
          The instance is currently being initialized.
Invalid
          The form is currently in an invalid state, meaning that it contains one or more validation errors.
Uninitialized
          The instance has been created, but it has not yet been initialized, and thus cannot handle user input and adapt itself yet.
Valid
          The form is currently in a valid state, meaning that its contents conform to all rules and validation criteria.
ValidWithWarnings
          The form is currently in a valid state, meaning that its contents conform to all rules and validation criteria.
 
Method Summary
static FormStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FormStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Uninitialized

public static final FormStatus Uninitialized
The instance has been created, but it has not yet been initialized, and thus cannot handle user input and adapt itself yet.


Initializing

public static final FormStatus Initializing
The instance is currently being initialized.


Invalid

public static final FormStatus Invalid
The form is currently in an invalid state, meaning that it contains one or more validation errors.


Incomplete

public static final FormStatus Incomplete
The form is partially completed. Some fields still needs to be filled out, but no validation errors remain except for "Required".


IncompleteWithWarnings

public static final FormStatus IncompleteWithWarnings
The form is partially completed. Some fields still needs to be filled out, but no validation problems remain, except for one or more warnings.


Valid

public static final FormStatus Valid
The form is currently in a valid state, meaning that its contents conform to all rules and validation criteria.


ValidWithWarnings

public static final FormStatus ValidWithWarnings
The form is currently in a valid state, meaning that its contents conform to all rules and validation criteria. However, one or more warnings are associated with the form.

Method Detail

values

public static FormStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FormStatus c : FormStatus.values())
    System.out.println(c);

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

valueOf

public static FormStatus 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
java.lang.NullPointerException - if the argument is null