Enum ValidationErrorType
- java.lang.Object
-
- java.lang.Enum<ValidationErrorType>
-
- de.gwdg.metadataqa.marc.model.validation.ValidationErrorType
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationErrorType>
public enum ValidationErrorType extends Enum<ValidationErrorType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationErrorTypebyCode(String code)ValidationErrorCategorygetCategory()StringgetCode()intgetId()StringgetMessage()static ValidationErrorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECORD_UNDETECTABLE_TYPE
public static final ValidationErrorType RECORD_UNDETECTABLE_TYPE
-
RECORD_INVALID_LINKAGE
public static final ValidationErrorType RECORD_INVALID_LINKAGE
-
RECORD_AMBIGUOUS_LINKAGE
public static final ValidationErrorType RECORD_AMBIGUOUS_LINKAGE
-
CONTROL_POSITION_OBSOLETE_CODE
public static final ValidationErrorType CONTROL_POSITION_OBSOLETE_CODE
-
CONTROL_POSITION_INVALID_CODE
public static final ValidationErrorType CONTROL_POSITION_INVALID_CODE
-
CONTROL_POSITION_INVALID_VALUE
public static final ValidationErrorType CONTROL_POSITION_INVALID_VALUE
-
FIELD_MISSING_REFERENCE_SUBFIELD
public static final ValidationErrorType FIELD_MISSING_REFERENCE_SUBFIELD
-
FIELD_NONREPEATABLE
public static final ValidationErrorType FIELD_NONREPEATABLE
-
FIELD_UNDEFINED
public static final ValidationErrorType FIELD_UNDEFINED
-
INDICATOR_OBSOLETE
public static final ValidationErrorType INDICATOR_OBSOLETE
-
INDICATOR_NON_EMPTY
public static final ValidationErrorType INDICATOR_NON_EMPTY
-
INDICATOR_INVALID_VALUE
public static final ValidationErrorType INDICATOR_INVALID_VALUE
-
SUBFIELD_UNDEFINED
public static final ValidationErrorType SUBFIELD_UNDEFINED
-
SUBFIELD_INVALID_LENGTH
public static final ValidationErrorType SUBFIELD_INVALID_LENGTH
-
SUBFIELD_INVALID_CLASSIFICATION_REFERENCE
public static final ValidationErrorType SUBFIELD_INVALID_CLASSIFICATION_REFERENCE
-
SUBFIELD_PATTERN_MISMATCH
public static final ValidationErrorType SUBFIELD_PATTERN_MISMATCH
-
SUBFIELD_NONREPEATABLE
public static final ValidationErrorType SUBFIELD_NONREPEATABLE
-
SUBFIELD_ISBN
public static final ValidationErrorType SUBFIELD_ISBN
-
SUBFIELD_ISSN
public static final ValidationErrorType SUBFIELD_ISSN
-
SUBFIELD_UNPARSABLE_CONTENT
public static final ValidationErrorType SUBFIELD_UNPARSABLE_CONTENT
-
SUBFIELD_NULL_CODE
public static final ValidationErrorType SUBFIELD_NULL_CODE
-
SUBFIELD_INVALID_VALUE
public static final ValidationErrorType SUBFIELD_INVALID_VALUE
-
-
Method Detail
-
values
public static ValidationErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValidationErrorType c : ValidationErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
byCode
public static ValidationErrorType byCode(String code)
-
getId
public int getId()
-
getCode
public String getCode()
-
getMessage
public String getMessage()
-
getCategory
public ValidationErrorCategory getCategory()
-
-