| |
|
| java.lang.Object com.uwyn.rife.site.ValidationError
ValidationError | abstract public class ValidationError implements Cloneable(Code) | | Instances of this class detail subjects that were found invalid during
validation.
Each ValidationError is tied to a specific subject and
provides more information through an explicative textual identifier.
A collection of commonly used identifiers and implementations are
provided as static member variables and static inner classes.
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3634 $ See Also: Validated since: 1.0 |
Constructor Summary | |
public | ValidationError(String identifier, String subject) Creates a new ValidationError instance for the specified
identifier and subject. | public | ValidationError(String identifier, String subject, boolean overridable) Creates a new ValidationError instance for the specified
identifier and subject. |
IDENTIFIER_INCOMPLETE | final public static String IDENTIFIER_INCOMPLETE(Code) | | |
IDENTIFIER_INVALID | final public static String IDENTIFIER_INVALID(Code) | | |
IDENTIFIER_MANDATORY | final public static String IDENTIFIER_MANDATORY(Code) | | |
IDENTIFIER_NOTNUMERIC | final public static String IDENTIFIER_NOTNUMERIC(Code) | | |
IDENTIFIER_NOTSAME | final public static String IDENTIFIER_NOTSAME(Code) | | |
IDENTIFIER_UNEXPECTED | final public static String IDENTIFIER_UNEXPECTED(Code) | | |
IDENTIFIER_UNICITY | final public static String IDENTIFIER_UNICITY(Code) | | |
IDENTIFIER_WRONGFORMAT | final public static String IDENTIFIER_WRONGFORMAT(Code) | | |
IDENTIFIER_WRONGLENGTH | final public static String IDENTIFIER_WRONGLENGTH(Code) | | |
ValidationError | public ValidationError(String identifier, String subject)(Code) | | Creates a new ValidationError instance for the specified
identifier and subject.
The error will not be automatic overridable.
Parameters: identifier - a non-null String with thetextual error identifier Parameters: subject - a non-null String with thename of the erroneous subject since: 1.0 |
ValidationError | public ValidationError(String identifier, String subject, boolean overridable)(Code) | | Creates a new ValidationError instance for the specified
identifier and subject.
Parameters: identifier - a non-null String with thetextual error identifier Parameters: subject - a non-null String with thename of the erroneous subject Parameters: overridable - true to make any other error for the samesubject override this error, false if this error shouldalways be shown since: 1.5 |
getErroneousValue | public Object getErroneousValue()(Code) | | Returns the erroneous value that caused the validation error, if it's present.
since: 1.0 |
getIdentifier | final public String getIdentifier()(Code) | | Returns the textual identifier that categorizes this validation error.
since: 1.0 |
getSubject | final public String getSubject()(Code) | | Returns the erroneous subject name of this validation error.
since: 1.0 |
hashCode | public int hashCode()(Code) | | |
isOverridable | final public boolean isOverridable()(Code) | | Returns wether this error is overridable for the same subject.
since: 1.5 |
setErroneousValue | public void setErroneousValue(Object erroneousValue)(Code) | | Stores the erroneous value that caused the validation error.
This is optional and should only be done when the erroneous value
gives more information from the context in which the validation
error occurred.
since: 1.0 |
|
|
|