- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<PositionOnProducts>
,Constable
Enum
that corresponds to ONIX Codelist 142
Description: Position on product
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionThe front cover of a bookThe inside front cover of a bookThe inside back cover of a bookThe back cover of a book (or book jacket) - the recommended positionNot be used for books unless they are contained within outer packagingNot be used for books unless they are contained within outer packagingUsed only for boxed productsUsed only for products packaged in outer sleevesUsed only for products packaged in shrink-wrap or other removable wrappingThe spine of a bookUsed only for products fitted with hanging tagsPosition unknown or unspecified -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PositionOnProducts
static Optional<PositionOnProducts>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static PositionOnProducts
Returns the enum constant of this class with the specified name.static PositionOnProducts[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
Unknown_unspecified
Position unknown or unspecified -
Cover_4
The back cover of a book (or book jacket) - the recommended position -
Cover_3
The inside back cover of a book -
Cover_2
The inside front cover of a book -
Cover_1
The front cover of a book -
On_spine
The spine of a book -
On_box
Used only for boxed products -
On_tag
Used only for products fitted with hanging tags -
On_bottom
Not be used for books unless they are contained within outer packaging -
On_back
Not be used for books unless they are contained within outer packaging -
On_outer_sleeve_back
Used only for products packaged in outer sleeves -
On_removable_wrapping
Used only for products packaged in shrink-wrap or other removable wrapping
-
-
Field Details
-
code
-
description
-
-
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
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-