Package net.sf.jasperreports.barcode4j
Enum ErrorCorrectionLevelEnum
- java.lang.Object
-
- java.lang.Enum<ErrorCorrectionLevelEnum>
-
- net.sf.jasperreports.barcode4j.ErrorCorrectionLevelEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCorrectionLevelEnum>
,NamedEnum
public enum ErrorCorrectionLevelEnum extends Enum<ErrorCorrectionLevelEnum> implements NamedEnum
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_UNKNOWN_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCorrectionLevelEnum
getByName(String name)
ErrorCorrectionLevelEnum
getDefault()
com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
getErrorCorrectionLevel()
String
getName()
static ErrorCorrectionLevelEnum
getValueOrDefault(ErrorCorrectionLevelEnum value)
static ErrorCorrectionLevelEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorCorrectionLevelEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
L
public static final ErrorCorrectionLevelEnum L
-
M
public static final ErrorCorrectionLevelEnum M
-
Q
public static final ErrorCorrectionLevelEnum Q
-
H
public static final ErrorCorrectionLevelEnum H
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_NAME
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ErrorCorrectionLevelEnum[] 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 (ErrorCorrectionLevelEnum c : ErrorCorrectionLevelEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCorrectionLevelEnum 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
-
getErrorCorrectionLevel
public final com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getErrorCorrectionLevel()
-
getByName
public static ErrorCorrectionLevelEnum getByName(String name)
-
getValueOrDefault
public static ErrorCorrectionLevelEnum getValueOrDefault(ErrorCorrectionLevelEnum value)
-
getDefault
public ErrorCorrectionLevelEnum getDefault()
- Specified by:
getDefault
in interfaceNamedEnum
-
-