Enum Class GS1Encoder.Validation

java.lang.Object
java.lang.Enum<GS1Encoder.Validation>
org.gs1.gs1encoders.GS1Encoder.Validation
All Implemented Interfaces:
Serializable, Comparable<GS1Encoder.Validation>, Constable
Enclosing class:
GS1Encoder

public static enum GS1Encoder.Validation extends Enum<GS1Encoder.Validation>
Optional AI validation procedures that may be applied to detect invalid inputs.

These validation procedures are applied when AI data is provided using GS1Encoder.setAIdataStr(String), GS1Encoder.setDataStr(String) or GS1Encoder.setScanData(String).

Note: Some validation procedures are "locked" (always enabled and cannot be modified). All validation procedures are listed to maintain correct enum value alignment with the native library.

  • Enum Constant Details

    • MutexAIs

      public static final GS1Encoder.Validation MutexAIs
      Mutually exclusive AIs (locked: always enabled)
    • RequisiteAIs

      public static final GS1Encoder.Validation RequisiteAIs
      Mandatory associations between AIs
    • RepeatedAIs

      public static final GS1Encoder.Validation RepeatedAIs
      Repeated AIs having same value (locked: always enabled)
    • DigSigSerialKey

      public static final GS1Encoder.Validation DigSigSerialKey
      Serialisation qualifier AIs must be present with Digital Signature (locked: always enabled)
    • UnknownAInotDLattr

      public static final GS1Encoder.Validation UnknownAInotDLattr
      Unknown AIs not permitted as GS1 DL URI data attributes
    • NUMVALIDATIONS

      public static final GS1Encoder.Validation NUMVALIDATIONS
      Value is the number of validations
  • Method Details

    • values

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

      public static GS1Encoder.Validation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null