javax.beans.binding
Enum ValidationResult.Action

java.lang.Object
  extended by java.lang.Enum<ValidationResult.Action>
      extended by javax.beans.binding.ValidationResult.Action
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValidationResult.Action>
Enclosing class:
ValidationResult

public static enum ValidationResult.Action
extends java.lang.Enum<ValidationResult.Action>

An enumeration of the action the Binding should take.


Enum Constant Summary
DO_NOTHING
          Indicates the Binding should do nothing in response to this ValidationResult.
SET_TARGET_FROM_SOURCE
          Indicates the Binding should revert the target value by setting it from the source value.
 
Method Summary
static ValidationResult.Action valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValidationResult.Action[] 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

DO_NOTHING

public static final ValidationResult.Action DO_NOTHING
Indicates the Binding should do nothing in response to this ValidationResult. That results in leaving the target state INVALID.


SET_TARGET_FROM_SOURCE

public static final ValidationResult.Action SET_TARGET_FROM_SOURCE
Indicates the Binding should revert the target value by setting it from the source value. Care must be taken when specifying this action. It implies a level of reentrancy in setting values that not all objects are designed to deal with.

Method Detail

values

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

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

valueOf

public static ValidationResult.Action 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