net.sf.jsefa.common.validator
Interface ValidationErrorCodes


public interface ValidationErrorCodes

Constants for validation error codes. Modeled as Strings and not as enums to allow for user-defined error codes used by user defined Validators.

Author:
Norman Lahme-Huetig

Field Summary
static String MISSING_VALUE
          A required value is missing.
static String OUT_OF_RANGE
          A numeric value is out of range.
static String PATTERN_MATCHING_FAILED
          A value does not match a given pattern.
static String WRONG_LENGTH
          The length of a value is smaller or bigger then allowed.
static String WRONG_QUANTITY
          A collection does have more or less items than allowed.
 

Field Detail

MISSING_VALUE

static final String MISSING_VALUE
A required value is missing.

See Also:
Constant Field Values

PATTERN_MATCHING_FAILED

static final String PATTERN_MATCHING_FAILED
A value does not match a given pattern.

See Also:
Constant Field Values

WRONG_QUANTITY

static final String WRONG_QUANTITY
A collection does have more or less items than allowed.

See Also:
Constant Field Values

OUT_OF_RANGE

static final String OUT_OF_RANGE
A numeric value is out of range.

See Also:
Constant Field Values

WRONG_LENGTH

static final String WRONG_LENGTH
The length of a value is smaller or bigger then allowed.

See Also:
Constant Field Values


Copyright © 2014. All rights reserved.