com.primix.tapestry.valid
Class ValidationConstraint

java.lang.Object
  |
  +--com.primix.tapestry.util.Enum
        |
        +--com.primix.tapestry.valid.ValidationConstraint
All Implemented Interfaces:
java.io.Serializable

public class ValidationConstraint
extends Enum

Defines an enumeration of different types of validation constraints that may be violated.

Version:
$Id: ValidationConstraint.java,v 1.3 2001/05/02 14:15:17 hship Exp $
Author:
Howard Ship
See Also:
Serialized Form

Field Summary
static ValidationConstraint DATE_FORMAT
          Indicates a general error in converting a String into a Date.
static ValidationConstraint MINIMUM_WIDTH
          Indicates that a non-null value was provided, but that (after removing leading and trailing whitespace), the value was not long enough.
static ValidationConstraint NUMBER_FORMAT
          Indicates a general error in the format of a string that is to be interpreted as a number.
static ValidationConstraint REQUIRED
          Indicates that no value (or a value consisting only of white space) was provided for a field that requires a non-null value.
static ValidationConstraint TOO_LARGE
          Indicates that the value was too large (for a Date, too late).
static ValidationConstraint TOO_SMALL
          Indicates that the value was too small (for a Date, too early).
 
Methods inherited from class com.primix.tapestry.util.Enum
getEnumerationId, getSingleton, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUIRED

public static final ValidationConstraint REQUIRED
Indicates that no value (or a value consisting only of white space) was provided for a field that requires a non-null value.

MINIMUM_WIDTH

public static final ValidationConstraint MINIMUM_WIDTH
Indicates that a non-null value was provided, but that (after removing leading and trailing whitespace), the value was not long enough.

DATE_FORMAT

public static final ValidationConstraint DATE_FORMAT
Indicates a general error in converting a String into a Date.

NUMBER_FORMAT

public static final ValidationConstraint NUMBER_FORMAT
Indicates a general error in the format of a string that is to be interpreted as a number.

TOO_SMALL

public static final ValidationConstraint TOO_SMALL
Indicates that the value was too small (for a Date, too early).

TOO_LARGE

public static final ValidationConstraint TOO_LARGE
Indicates that the value was too large (for a Date, too late).