Enum ErrorCorrection

java.lang.Object
java.lang.Enum<ErrorCorrection>
com.dynamicpdf.api.elements.ErrorCorrection
All Implemented Interfaces:
Serializable, Comparable<ErrorCorrection>, java.lang.constant.Constable

public enum ErrorCorrection extends Enum<ErrorCorrection>
The level of error correction to use in a barcode.
  • Enum Constant Details

    • LEVEL0

      public static final ErrorCorrection LEVEL0
      Error Correction Level 0.
    • LEVEL1

      public static final ErrorCorrection LEVEL1
      Error Correction Level 1.
    • LEVEL2

      public static final ErrorCorrection LEVEL2
      Error Correction Level 2.
    • LEVEL3

      public static final ErrorCorrection LEVEL3
      Error Correction Level 3.
    • LEVEL4

      public static final ErrorCorrection LEVEL4
      Error Correction Level 4.
    • LEVEL5

      public static final ErrorCorrection LEVEL5
      Error Correction Level 5.
    • LEVEL6

      public static final ErrorCorrection LEVEL6
      Error Correction Level 6.
    • LEVEL7

      public static final ErrorCorrection LEVEL7
      Error Correction Level 7.
    • LEVEL8

      public static final ErrorCorrection LEVEL8
      Error Correction Level 8.
    • AUTO

      public static final ErrorCorrection AUTO
      Error Correction Auto.
  • Method Details

    • values

      public static ErrorCorrection[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ErrorCorrection 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 name
      NullPointerException - if the argument is null