Enum IBANValidatorStatus
- java.lang.Object
-
- java.lang.Enum<IBANValidatorStatus>
-
- org.apache.commons.validator.routines.IBANValidatorStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IBANValidatorStatus>
public enum IBANValidatorStatus extends java.lang.Enum<IBANValidatorStatus>
Statuses of IBAN validation.- Since:
- 1.10.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CHECKSUMChecksum for given IBAN is invalidINVALID_LENGTHLength for given IBAN is wrongINVALID_PATTERNPattern for given IBAN is not matchUNKNOWN_COUNTRYIBAN validator for given country is not registeredVALIDIBAN is valid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IBANValidatorStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IBANValidatorStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final IBANValidatorStatus VALID
IBAN is valid
-
UNKNOWN_COUNTRY
public static final IBANValidatorStatus UNKNOWN_COUNTRY
IBAN validator for given country is not registered
-
INVALID_LENGTH
public static final IBANValidatorStatus INVALID_LENGTH
Length for given IBAN is wrong
-
INVALID_PATTERN
public static final IBANValidatorStatus INVALID_PATTERN
Pattern for given IBAN is not match
-
INVALID_CHECKSUM
public static final IBANValidatorStatus INVALID_CHECKSUM
Checksum for given IBAN is invalid
-
-
Method Detail
-
values
public static IBANValidatorStatus[] 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 (IBANValidatorStatus c : IBANValidatorStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IBANValidatorStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-