Package com.veeroute.lss.packer.model
Enum Class PackerEntityErrorType
- All Implemented Interfaces:
Serializable,Comparable<PackerEntityErrorType>,Constable
Error type: * `UNIQUE_IDS_VIOLATION` - all keys must be unique * `INCONSISTENT_REFERENCE` - bad reference key * `INVALID_SLOTS_COUNT` - exactly one SLOT package must be present * `INVALID_SLOT_CONTAINER` - slot container_coordinates must be zero * `INVALID_SLOT_BODY` - slot body_dimensions must be zero * `INVALID_PALLETS_COUNT` - exactly one PALLET package must be present * `INVALID_PALLET_CONTAINER_DIMENSIONS` - the length and width of a pallet container_dimensions must not exceed the corresponding body_dimensions * `INVALID_PALLET_CONTAINER` - the pallet container must not go beyond the boundaries of the pallet body in length and width * `INVALID_MIXBOX_CONTAINER` - mixbox container must be inside body subject to container_coordinates offset * `INVALID_MIXBOX_COUNT` - at least one valid MIXBOX package must be present * `INVALID_PRODUCT_DIMENSIONS` - product length, width and height must be at least 1 millimeter, weight - at least 1 gram * `INVALID_PRODUCT_COUNT` - at least one valid product must be present
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic PackerEntityErrorTypegetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static PackerEntityErrorTypeReturns the enum constant of this class with the specified name.static PackerEntityErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNIQUE_IDS_VIOLATION
-
INCONSISTENT_REFERENCE
-
INVALID_SLOTS_COUNT
-
INVALID_SLOT_CONTAINER
-
INVALID_SLOT_BODY
-
INVALID_PALLETS_COUNT
-
INVALID_PALLET_CONTAINER_DIMENSIONS
-
INVALID_PALLET_CONTAINER
-
INVALID_MIXBOX_CONTAINER
-
INVALID_MIXBOX_COUNT
-
INVALID_PRODUCT_DIMENSIONS
-
INVALID_PRODUCT_COUNT
-
-
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
-
getValue
-
toString
- Overrides:
toStringin classEnum<PackerEntityErrorType>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-