Package org.gs1.gs1encoders
Enum Class GS1Encoder.Validation
- All Implemented Interfaces:
Serializable,Comparable<GS1Encoder.Validation>,Constable
- Enclosing class:
GS1Encoder
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSerialisation qualifier AIs must be present with Digital Signature (locked: always enabled)Mutually exclusive AIs (locked: always enabled)Value is the number of validationsRepeated AIs having same value (locked: always enabled)Mandatory associations between AIsUnknown AIs not permitted as GS1 DL URI data attributes -
Method Summary
Modifier and TypeMethodDescriptionstatic GS1Encoder.ValidationReturns the enum constant of this class with the specified name.static GS1Encoder.Validation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MutexAIs
Mutually exclusive AIs (locked: always enabled) -
RequisiteAIs
Mandatory associations between AIs -
RepeatedAIs
Repeated AIs having same value (locked: always enabled) -
DigSigSerialKey
Serialisation qualifier AIs must be present with Digital Signature (locked: always enabled) -
UnknownAInotDLattr
Unknown AIs not permitted as GS1 DL URI data attributes -
NUMVALIDATIONS
Value is the number of validations
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-