public class ValidationConstraint extends java.lang.Object implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static ValidationConstraint |
CONSISTENCY
Indicates a consistency error, usually between too different fields.
|
static ValidationConstraint |
DATE_FORMAT
Indicates a general error in converting a String into a Date.
|
static ValidationConstraint |
DISALLOWED_PROTOCOL
Indicates that the URL does not use one of the specified protocols
|
static ValidationConstraint |
EMAIL_FORMAT
Indicates a general error in the format of a string that is to be interpreted as a email.
|
static ValidationConstraint |
MAXIMUM_WIDTH
Indicates that a non-null value was provided, but that (after removing leading and trailing
whitespace), the value was too long.
|
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 |
PATTERN_MISMATCH
Indicates an error in a string that does not fulfill a pattern.
|
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).
|
static ValidationConstraint |
URL_FORMAT
Indicates that a URL is not of the correct format
|
Modifier | Constructor and Description |
---|---|
protected |
ValidationConstraint(java.lang.String name)
Protected constructor, which allows new constraints to be created as subclasses.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public static final ValidationConstraint REQUIRED
public static final ValidationConstraint MINIMUM_WIDTH
public static final ValidationConstraint MAXIMUM_WIDTH
public static final ValidationConstraint DATE_FORMAT
public static final ValidationConstraint EMAIL_FORMAT
public static final ValidationConstraint NUMBER_FORMAT
public static final ValidationConstraint TOO_SMALL
public static final ValidationConstraint TOO_LARGE
public static final ValidationConstraint PATTERN_MISMATCH
public static final ValidationConstraint CONSISTENCY
public static final ValidationConstraint URL_FORMAT
public static final ValidationConstraint DISALLOWED_PROTOCOL
protected ValidationConstraint(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object