org.javalid.core.validator
Class MessageCodes

java.lang.Object
  extended by org.javalid.core.validator.MessageCodes

public class MessageCodes
extends java.lang.Object

This class contains all JV error messages as constants (the pre-defined ones at least)

Since:
1.0
Version:
1.0
Author:
M.Reuvers

Field Summary
static java.lang.String MSG_BETWEEN_LENGTH_ERROR
          When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not between the lengths specified by BetweenLength annotations.
static java.lang.String MSG_COLLECTION_MODE_BETWEEN
          When the mode of @CollectionSize is between, and the collection's size is < than given minimumSize or < than given maximumSize, this error is raised.
static java.lang.String MSG_COLLECTION_MODE_EQUALS_ERROR
          When the mode of @CollectionSize is equals, and the collection is not equal to given size this error is raised.
static java.lang.String MSG_COLLECTION_MODE_MAXIMUM
          When the mode of @CollectionSize is maximum, and the collection's size is > than given maximumSize, this error is raised.
static java.lang.String MSG_COLLECTION_MODE_MINIMUM
          When the mode of @CollectionSize is minimum, and the collection's size is < than given minimumSize, this error is raised.
static java.lang.String MSG_COLLECTION_MODE_NOT_EQUALS_ERROR
          When the mode of @CollectionSize is not equals, and the collection is equal to given size this error is raised.
static java.lang.String MSG_DATE_AFTER_EQUALS_OR_MORE_THAN_ERROR
          When date is more than and not equal given by property after on @DateAfter, this error is raised.
static java.lang.String MSG_DATE_AFTER_MORE_THAN_ERROR
          When date is more than given by property after on @DateAfter, this error is raised.
static java.lang.String MSG_DATE_BEFORE_EQUALS_OR_LESS_THAN_ERROR
          When date is less than and not equal given by property before on @DateBefore, this error is raised.
static java.lang.String MSG_DATE_BEFORE_LESS_THAN_ERROR
          When date is less than given by property before on @DateBefore, this error is raised.
static java.lang.String MSG_DATE_CHECK_EQUALS_ERROR
          When date does not equal given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_CHECK_EQUALS_OR_LESS
          When date does not equal or is less than given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_CHECK_EQUALS_OR_MORE
          When date does not equal or is more than given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_CHECK_LESS
          When date is less than given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_CHECK_MORE
          When date is equal or less than given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_CHECK_NOT_EQUALS_ERROR
          When date does equal given date by @DateCheck this error is raised.
static java.lang.String MSG_DATE_EQUALS_ERROR
          When date does NOT equal date given by property otherDate on @DateEqual, this error is raised.
static java.lang.String MSG_DATE_NOT_EQUALS_ERROR
          When date does EQUAL date given by property otherDate on @DateNotEqual, this error is raised.
static java.lang.String MSG_DB_NUM_CHECK_BETWEEN_ERROR
          When the @DbNumCheck is invalid (is not between minValue and maxValue) this error is raised.
static java.lang.String MSG_DB_NUM_CHECK_EQUALS_ERROR
          When the @DbNumCheck is invalid (does not match an expected value) this error is raised.
static java.lang.String MSG_DB_NUM_CHECK_LESS_THAN_ERROR
          When the @DbNumCheck is invalid (equals or is more) this error is raised.
static java.lang.String MSG_DB_NUM_CHECK_MORE_THAN_ERROR
          When the @DbNumCheck is invalid (equals or is less than) this error is raised.
static java.lang.String MSG_DB_NUM_CHECK_NOT_EQUALS_ERROR
          When the @DbNumCheck is invalid (does match expected value, just what it may not be) this error is raised.
static java.lang.String MSG_EMPTY_OR_NOT_EMPTY_ALL_ERROR
          When either one of the fields/methods is the opposite of the rest (empty / non-empty), this validation error is raised.
static java.lang.String MSG_EXACT_LENGTH_ERROR
          When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not the exact length specified by MinLength annotations.
static java.lang.String MSG_LOV_CONSTR_VALUE_IN_LOV_ERROR
          The opposite of MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR, if the value is found in the array / collection this error is raised.
static java.lang.String MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR
          When a method's value is not in an LovConstraint's values this error is raised.
static java.lang.String MSG_MAX_LENGTH_ERROR
          When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is more than maximum length.
static java.lang.String MSG_MAX_VALUE_ERROR
          When a value is larger than the specified maximum (is more than).
static java.lang.String MSG_MIN_LENGTH_ERROR
          When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not of minimum length.
static java.lang.String MSG_MIN_VALUE_ERROR
          When a value does not have the specified minimum (is less than).
static java.lang.String MSG_NOT_EMPTY_ALL_ERROR
          When either one of the fields/methods is empty, this validation error is raised.
static java.lang.String MSG_NOT_EMPTY_ERROR
          When a value violates the notempty annotation (thus is empty).
static java.lang.String MSG_NOT_NULL_ALL_ERROR
          When one or more method/field(s) are null, while it should not be.
static java.lang.String MSG_NOT_NULL_ERROR
          When a value is null, while it should be 'not null'.
static java.lang.String MSG_NOT_NUMERIC_ERROR
          When a value is NOT numeric, while it should be.
static java.lang.String MSG_NULL_OR_NOT_NULL_ALL_ERROR
          When either one of the fields/methods is the opposite of the rest, this validation error is raised.
static java.lang.String MSG_REGULAR_EXPRESSION_ERROR
          When the java.lang.String/java.lang.StringBuffer is not conform RegularExpression's pattern, this error is raised.
 
Constructor Summary
MessageCodes()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_NOT_NULL_ERROR

public static final java.lang.String MSG_NOT_NULL_ERROR
When a value is null, while it should be 'not null'.

See Also:
Constant Field Values

MSG_NOT_EMPTY_ERROR

public static final java.lang.String MSG_NOT_EMPTY_ERROR
When a value violates the notempty annotation (thus is empty). Parameters: {currentValue}

See Also:
Constant Field Values

MSG_NOT_NUMERIC_ERROR

public static final java.lang.String MSG_NOT_NUMERIC_ERROR
When a value is NOT numeric, while it should be. Parameters available for in message at indices: {currentValue,annotationValue}

See Also:
Constant Field Values

MSG_MIN_VALUE_ERROR

public static final java.lang.String MSG_MIN_VALUE_ERROR
When a value does not have the specified minimum (is less than). Parameters available for in message at indices: {currentValue,annotationValue}

See Also:
Constant Field Values

MSG_MAX_VALUE_ERROR

public static final java.lang.String MSG_MAX_VALUE_ERROR
When a value is larger than the specified maximum (is more than). Parameters available for in message at indices: {currentValue,annotationValue}

See Also:
Constant Field Values

MSG_MIN_LENGTH_ERROR

public static final java.lang.String MSG_MIN_LENGTH_ERROR
When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not of minimum length. Parameters available for in message at indices: {currentValue,annotationValue}

See Also:
Constant Field Values

MSG_MAX_LENGTH_ERROR

public static final java.lang.String MSG_MAX_LENGTH_ERROR
When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is more than maximum length. Parameters available for in message at indices: {currentValue,annotationValue}

See Also:
Constant Field Values

MSG_BETWEEN_LENGTH_ERROR

public static final java.lang.String MSG_BETWEEN_LENGTH_ERROR
When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not between the lengths specified by BetweenLength annotations. Parameters available for in messages are at indices: {currentValue,minimumLengthValue,maximumLengthValue}

See Also:
Constant Field Values

MSG_EXACT_LENGTH_ERROR

public static final java.lang.String MSG_EXACT_LENGTH_ERROR
When a java.lang.String/java.lang.StringBuffer/java.lang.StringBuilder value is not the exact length specified by MinLength annotations. Parameters available for in messages are at indices: {currentValue,exactLengthValue}

See Also:
Constant Field Values

MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR

public static final java.lang.String MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR
When a method's value is not in an LovConstraint's values this error is raised. Parameters available for in messages are at indices: {currentValue,lovValues}.

Note that lovValues can be the String array directly specified on the annotation or a looked up array and/or java.util.Collection if dynamic (depending on how you defined your annotation).

See Also:
Constant Field Values

MSG_LOV_CONSTR_VALUE_IN_LOV_ERROR

public static final java.lang.String MSG_LOV_CONSTR_VALUE_IN_LOV_ERROR
The opposite of MSG_LOV_CONSTR_VALUE_NOT_IN_LOV_ERROR, if the value is found in the array / collection this error is raised.

Parameters available for in messages are at indices: {currentValue,lovValues}. Note that lovValues can be the String array directly specified on the annotation or a looked up array and/or java.util.Collection if dynamic (depending on how you defined your annotation).

See Also:
Constant Field Values

MSG_REGULAR_EXPRESSION_ERROR

public static final java.lang.String MSG_REGULAR_EXPRESSION_ERROR
When the java.lang.String/java.lang.StringBuffer is not conform RegularExpression's pattern, this error is raised.

Parameters available for in messages are at indices: {currentValue,pattern}

See Also:
Constant Field Values

MSG_COLLECTION_MODE_EQUALS_ERROR

public static final java.lang.String MSG_COLLECTION_MODE_EQUALS_ERROR
When the mode of @CollectionSize is equals, and the collection is not equal to given size this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationSize,currentSize}

See Also:
Constant Field Values

MSG_COLLECTION_MODE_NOT_EQUALS_ERROR

public static final java.lang.String MSG_COLLECTION_MODE_NOT_EQUALS_ERROR
When the mode of @CollectionSize is not equals, and the collection is equal to given size this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationSize,currentSize}

See Also:
Constant Field Values

MSG_COLLECTION_MODE_MAXIMUM

public static final java.lang.String MSG_COLLECTION_MODE_MAXIMUM
When the mode of @CollectionSize is maximum, and the collection's size is > than given maximumSize, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationMaximumSize,currentSize}

See Also:
Constant Field Values

MSG_COLLECTION_MODE_MINIMUM

public static final java.lang.String MSG_COLLECTION_MODE_MINIMUM
When the mode of @CollectionSize is minimum, and the collection's size is < than given minimumSize, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationMinimumSize,currentSize}

See Also:
Constant Field Values

MSG_COLLECTION_MODE_BETWEEN

public static final java.lang.String MSG_COLLECTION_MODE_BETWEEN
When the mode of @CollectionSize is between, and the collection's size is < than given minimumSize or < than given maximumSize, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationMinimumSize,annotationMaximumSize,currentSize}

See Also:
Constant Field Values

MSG_DATE_CHECK_EQUALS_ERROR

public static final java.lang.String MSG_DATE_CHECK_EQUALS_ERROR
When date does not equal given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_CHECK_EQUALS_OR_MORE

public static final java.lang.String MSG_DATE_CHECK_EQUALS_OR_MORE
When date does not equal or is more than given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_CHECK_EQUALS_OR_LESS

public static final java.lang.String MSG_DATE_CHECK_EQUALS_OR_LESS
When date does not equal or is less than given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_CHECK_MORE

public static final java.lang.String MSG_DATE_CHECK_MORE
When date is equal or less than given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_CHECK_LESS

public static final java.lang.String MSG_DATE_CHECK_LESS
When date is less than given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_CHECK_NOT_EQUALS_ERROR

public static final java.lang.String MSG_DATE_CHECK_NOT_EQUALS_ERROR
When date does equal given date by @DateCheck this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

See Also:
Constant Field Values

MSG_DATE_BEFORE_LESS_THAN_ERROR

public static final java.lang.String MSG_DATE_BEFORE_LESS_THAN_ERROR
When date is less than given by property before on @DateBefore, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_DATE_BEFORE_EQUALS_OR_LESS_THAN_ERROR

public static final java.lang.String MSG_DATE_BEFORE_EQUALS_OR_LESS_THAN_ERROR
When date is less than and not equal given by property before on @DateBefore, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_DATE_AFTER_MORE_THAN_ERROR

public static final java.lang.String MSG_DATE_AFTER_MORE_THAN_ERROR
When date is more than given by property after on @DateAfter, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_DATE_AFTER_EQUALS_OR_MORE_THAN_ERROR

public static final java.lang.String MSG_DATE_AFTER_EQUALS_OR_MORE_THAN_ERROR
When date is more than and not equal given by property after on @DateAfter, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_DATE_EQUALS_ERROR

public static final java.lang.String MSG_DATE_EQUALS_ERROR
When date does NOT equal date given by property otherDate on @DateEqual, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_DATE_NOT_EQUALS_ERROR

public static final java.lang.String MSG_DATE_NOT_EQUALS_ERROR
When date does EQUAL date given by property otherDate on @DateNotEqual, this error is raised.

Parameters available for in messages are at indices: {currentValue,annotationValue,pattern}

Since:
1.2
See Also:
Constant Field Values

MSG_NOT_NULL_ALL_ERROR

public static final java.lang.String MSG_NOT_NULL_ALL_ERROR
When one or more method/field(s) are null, while it should not be. Used by @NotNullAll annotation.

Parameters available for in message are at indices: {currentClassInstance,allFieldValues} etc. Note allFieldValues is an array of all the values of the methods/fields.

Since:
1.2
See Also:
Constant Field Values

MSG_NULL_OR_NOT_NULL_ALL_ERROR

public static final java.lang.String MSG_NULL_OR_NOT_NULL_ALL_ERROR
When either one of the fields/methods is the opposite of the rest, this validation error is raised. Values must all be NULL or all be NOT NULL.

Parameters available for in message are at indices {currentClassInstance,allFieldValues}. Note allFieldValues is an array of all the values of the methods/fields.

Since:
1.2
See Also:
Constant Field Values

MSG_EMPTY_OR_NOT_EMPTY_ALL_ERROR

public static final java.lang.String MSG_EMPTY_OR_NOT_EMPTY_ALL_ERROR
When either one of the fields/methods is the opposite of the rest (empty / non-empty), this validation error is raised. Values must all be EMPTY or all be NON-EMPTY.

Parameters available for in message are at indices {currentClassInstance,allFieldValues}. Note allFieldValues is an array of all the values of the methods/fields.

Since:
1.2
See Also:
Constant Field Values

MSG_NOT_EMPTY_ALL_ERROR

public static final java.lang.String MSG_NOT_EMPTY_ALL_ERROR
When either one of the fields/methods is empty, this validation error is raised. Values must all be non-EMPTY.

Parameters available for in message are at indices {currentClassInstance,allFieldValues}. Note allFieldValues is an array of all the values of the methods/fields.

Since:
1.2
See Also:
Constant Field Values

MSG_DB_NUM_CHECK_EQUALS_ERROR

public static final java.lang.String MSG_DB_NUM_CHECK_EQUALS_ERROR
When the @DbNumCheck is invalid (does not match an expected value) this error is raised.

Parameters available for in messages are at indices: {currentValue,expectedValue}

Since:
1.1
See Also:
Constant Field Values

MSG_DB_NUM_CHECK_NOT_EQUALS_ERROR

public static final java.lang.String MSG_DB_NUM_CHECK_NOT_EQUALS_ERROR
When the @DbNumCheck is invalid (does match expected value, just what it may not be) this error is raised.

Parameters available for in messages are at indices: {currentValue,expectedValue}

Since:
1.1
See Also:
Constant Field Values

MSG_DB_NUM_CHECK_BETWEEN_ERROR

public static final java.lang.String MSG_DB_NUM_CHECK_BETWEEN_ERROR
When the @DbNumCheck is invalid (is not between minValue and maxValue) this error is raised.

Parameters available for in messages are at indices: {currentValue,minValue,maxValue}

Since:
1.1
See Also:
Constant Field Values

MSG_DB_NUM_CHECK_LESS_THAN_ERROR

public static final java.lang.String MSG_DB_NUM_CHECK_LESS_THAN_ERROR
When the @DbNumCheck is invalid (equals or is more) this error is raised.

Parameters available for in messages are at indices: {currentValue,expectedValue}

Since:
1.1
See Also:
Constant Field Values

MSG_DB_NUM_CHECK_MORE_THAN_ERROR

public static final java.lang.String MSG_DB_NUM_CHECK_MORE_THAN_ERROR
When the @DbNumCheck is invalid (equals or is less than) this error is raised.

Parameters available for in messages are at indices: {currentValue,expectedValue}

Since:
1.1
See Also:
Constant Field Values
Constructor Detail

MessageCodes

public MessageCodes()