Enum ErrorCorrectionLevelEnum
- java.lang.Object
-
- java.lang.Enum<ErrorCorrectionLevelEnum>
-
- net.sf.jasperreports.components.barcode4j.ErrorCorrectionLevelEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ErrorCorrectionLevelEnum>
,NamedEnum
public enum ErrorCorrectionLevelEnum extends java.lang.Enum<ErrorCorrectionLevelEnum> implements NamedEnum
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXCEPTION_MESSAGE_KEY_UNKNOWN_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCorrectionLevelEnum
getByName(java.lang.String name)
com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
getErrorCorrectionLevel()
java.lang.String
getName()
static ErrorCorrectionLevelEnum
valueOf(java.lang.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 java.lang.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(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
-
getErrorCorrectionLevel
public final com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getErrorCorrectionLevel()
-
getByName
public static ErrorCorrectionLevelEnum getByName(java.lang.String name)
-
-