Module jonix.common

Enum Class PositionOnProducts

java.lang.Object
java.lang.Enum<PositionOnProducts>
com.tectonica.jonix.common.codelist.PositionOnProducts
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<PositionOnProducts>, Constable

public enum PositionOnProducts extends Enum<PositionOnProducts> implements OnixCodelist
Enum that corresponds to ONIX Codelist 142

Description: Position on product

See Also:
  • Enum Constant Details

    • Unknown_unspecified

      public static final PositionOnProducts Unknown_unspecified
      Position unknown or unspecified
    • Cover_4

      public static final PositionOnProducts Cover_4
      The back cover of a book (or book jacket) - the recommended position
    • Cover_3

      public static final PositionOnProducts Cover_3
      The inside back cover of a book
    • Cover_2

      public static final PositionOnProducts Cover_2
      The inside front cover of a book
    • Cover_1

      public static final PositionOnProducts Cover_1
      The front cover of a book
    • On_spine

      public static final PositionOnProducts On_spine
      The spine of a book
    • On_box

      public static final PositionOnProducts On_box
      Used only for boxed products
    • On_tag

      public static final PositionOnProducts On_tag
      Used only for products fitted with hanging tags
    • On_bottom

      public static final PositionOnProducts On_bottom
      Not be used for books unless they are contained within outer packaging
    • On_back

      public static final PositionOnProducts On_back
      Not be used for books unless they are contained within outer packaging
    • On_outer_sleeve_back

      public static final PositionOnProducts On_outer_sleeve_back
      Used only for products packaged in outer sleeves
    • On_removable_wrapping

      public static final PositionOnProducts On_removable_wrapping
      Used only for products packaged in shrink-wrap or other removable wrapping
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static PositionOnProducts[] 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 PositionOnProducts 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
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static PositionOnProducts byCode(String code)
    • byCodeOptional

      public static Optional<PositionOnProducts> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)