public enum ValueConstraint extends java.lang.Enum<ValueConstraint>
| Enum Constant and Description | 
|---|
ANY
ANY - indicates no constraint 
 | 
NOTNULL
NOTNULL - indicates that some value must be anything but null (whatever it was before) 
 | 
NULL
NULL - indicates that some value must be null (whatever it was before) 
 | 
READONLY
READONLY - indicates that some value may not change (whatever it was before - null or not null) 
 | 
| Modifier and Type | Field and Description | 
|---|---|
char | 
code  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract MessageCode | 
getError(java.lang.Object oldValue,
        java.lang.Object newValue)  | 
boolean | 
isAny()  | 
static ValueConstraint | 
valueOf(char code)  | 
static ValueConstraint | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static ValueConstraint[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ValueConstraint NULL
public static final ValueConstraint NOTNULL
public static final ValueConstraint READONLY
public static final ValueConstraint ANY
public static ValueConstraint[] values()
for (ValueConstraint c : ValueConstraint.values()) System.out.println(c);
public static ValueConstraint valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ValueConstraint valueOf(char code)
public boolean isAny()
public abstract MessageCode getError(java.lang.Object oldValue, java.lang.Object newValue)