Enum RidExceptionProperty
- java.lang.Object
-
- java.lang.Enum<RidExceptionProperty>
-
- io.mosip.kernel.idvalidator.rid.constant.RidExceptionProperty
-
- All Implemented Interfaces:
Serializable,Comparable<RidExceptionProperty>
public enum RidExceptionProperty extends Enum<RidExceptionProperty>
This enum contains all exception properties that are required to validate RID.- Since:
- 1.0.0
- Author:
- Ritesh Sinha
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CENTER_IDINVALID_MACHINE_IDINVALID_RIDINVALID_RID_LENGTHINVALID_RID_SEQ_LENGTHINVALID_RID_TIMESTAMPINVALID_RIDLENGTH_OR_CENTERIDLENGTH_MACHINEIDLENGTH_TIMESTAMPLENGTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for errorCodeStringgetErrorMessage()Getter for errorMessagestatic RidExceptionPropertyvalueOf(String name)Returns the enum constant of this type with the specified name.static RidExceptionProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_RID
public static final RidExceptionProperty INVALID_RID
-
INVALID_CENTER_ID
public static final RidExceptionProperty INVALID_CENTER_ID
-
INVALID_MACHINE_ID
public static final RidExceptionProperty INVALID_MACHINE_ID
-
INVALID_RID_LENGTH
public static final RidExceptionProperty INVALID_RID_LENGTH
-
INVALID_RID_TIMESTAMP
public static final RidExceptionProperty INVALID_RID_TIMESTAMP
-
INVALID_RID_SEQ_LENGTH
public static final RidExceptionProperty INVALID_RID_SEQ_LENGTH
-
INVALID_RIDLENGTH_OR_CENTERIDLENGTH_MACHINEIDLENGTH_TIMESTAMPLENGTH
public static final RidExceptionProperty INVALID_RIDLENGTH_OR_CENTERIDLENGTH_MACHINEIDLENGTH_TIMESTAMPLENGTH
-
-
Method Detail
-
values
public static RidExceptionProperty[] 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 (RidExceptionProperty c : RidExceptionProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RidExceptionProperty 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
-
getErrorCode
public String getErrorCode()
Getter for errorCode- Returns:
- the errorCode.
-
getErrorMessage
public String getErrorMessage()
Getter for errorMessage- Returns:
- the errorMessage.
-
-