Package | Description |
---|---|
org.apache.tapestry.form.translator | |
org.apache.tapestry.valid |
Components and classes that provide specialized, validating text fields.
|
Modifier and Type | Method and Description |
---|---|
protected ValidationConstraint |
DateTranslator.getConstraint() |
protected abstract ValidationConstraint |
FormatTranslator.getConstraint() |
protected ValidationConstraint |
NumberTranslator.getConstraint() |
Modifier and Type | Field and Description |
---|---|
static ValidationConstraint |
ValidationConstraint.CONSISTENCY
Indicates a consistency error, usually between too different fields.
|
static ValidationConstraint |
ValidationConstraint.DATE_FORMAT
Indicates a general error in converting a String into a Date.
|
static ValidationConstraint |
ValidationConstraint.DISALLOWED_PROTOCOL
Indicates that the URL does not use one of the specified protocols
|
static ValidationConstraint |
ValidationConstraint.EMAIL_FORMAT
Indicates a general error in the format of a string that is to be interpreted as a email.
|
static ValidationConstraint |
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 |
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 |
ValidationConstraint.NUMBER_FORMAT
Indicates a general error in the format of a string that is to be interpreted as a number.
|
static ValidationConstraint |
ValidationConstraint.PATTERN_MISMATCH
Indicates an error in a string that does not fulfill a pattern.
|
static ValidationConstraint |
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 |
ValidationConstraint.TOO_LARGE
Indicates that the value was too large (for a Date, too late).
|
static ValidationConstraint |
ValidationConstraint.TOO_SMALL
Indicates that the value was too small (for a Date, too early).
|
static ValidationConstraint |
ValidationConstraint.URL_FORMAT
Indicates that a URL is not of the correct format
|
Modifier and Type | Method and Description |
---|---|
ValidationConstraint |
FieldTracking.getConstraint() |
ValidationConstraint |
IFieldTracking.getConstraint()
Returns the validation constraint that was violated by the input.
|
ValidationConstraint |
ValidatorException.getConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
IValidationDelegate.record(IRender errorRenderer,
ValidationConstraint constraint)
Records an error in the current component, or an unassociated error.
|
void |
ValidationDelegate.record(IRender errorRenderer,
ValidationConstraint constraint)
Records error information about the currently selected component, or records unassociated
(with any field) errors.
|
void |
IValidationDelegate.record(java.lang.String message,
ValidationConstraint constraint)
Records an error in the current field, or an unassociated error if there is no current field.
|
void |
ValidationDelegate.record(java.lang.String message,
ValidationConstraint constraint)
Invokes
ValidationDelegate.record(IRender, ValidationConstraint) , after wrapping the message parameter
in a RenderString . |
void |
FieldTracking.setConstraint(ValidationConstraint constraint) |
Constructor and Description |
---|
ValidatorException(java.lang.String errorMessage,
IRender errorRenderer,
ValidationConstraint constraint)
Creates a new instance.
|
ValidatorException(java.lang.String errorMessage,
ValidationConstraint constraint) |