javax.beans.binding
Enum Binding.ValueState

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

public static enum Binding.ValueState
extends java.lang.Enum<Binding.ValueState>

Enumeration of the possible states the source and target may be in.


Enum Constant Summary
INCOMPLETE_PATH
          Enumeration value indicating not all elements of the path are reachable.
INVALID
          Enumeration value indicating the value is invalid.
UNCOMMITTED
          Enumeration value indicating the value has not been committed to the the other object.
VALID
          Enumeration value indicating the value is valid and in sync with the other object.
 
Method Summary
static Binding.ValueState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Binding.ValueState[] 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

INCOMPLETE_PATH

public static final Binding.ValueState INCOMPLETE_PATH
Enumeration value indicating not all elements of the path are reachable. For example, if the source path is "manager.firstName" and manager property is null, then the "firstName" property can not be evaluated and the source state is set to INCOMPLETE_PATH.


UNCOMMITTED

public static final Binding.ValueState UNCOMMITTED
Enumeration value indicating the value has not been committed to the the other object. For example, if the update strategy is READ_ONCE and the source value changes, then the source value state is set to UNCOMMITTED.


INVALID

public static final Binding.ValueState INVALID
Enumeration value indicating the value is invalid. This occurs if the BindingValidator indicates an invalid value should be left in the target, or if the BindingConverter throws a ClassCastException or IllegalArgumentException on conversion.


VALID

public static final Binding.ValueState VALID
Enumeration value indicating the value is valid and in sync with the other object.

Method Detail

values

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

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

valueOf

public static Binding.ValueState 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