Module jonix.common

Enum Class SalesRightsTypes

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

public enum SalesRightsTypes extends Enum<SalesRightsTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 46

Description: Sales rights type

See Also:
  • Enum Constant Details

    • Sales_rights_unknown_or_unstated_for_any_reason

      public static final SalesRightsTypes Sales_rights_unknown_or_unstated_for_any_reason
      May only be used with the <ROWSalesRightsType> element
    • For_sale_with_exclusive_rights_in_the_specified_countries_or_territories

      public static final SalesRightsTypes For_sale_with_exclusive_rights_in_the_specified_countries_or_territories
    • For_sale_with_non_exclusive_rights_in_the_specified_countries_or_territories

      public static final SalesRightsTypes For_sale_with_non_exclusive_rights_in_the_specified_countries_or_territories
    • Not_for_sale_in_the_specified_countries_or_territories_reason_unspecified

      public static final SalesRightsTypes Not_for_sale_in_the_specified_countries_or_territories_reason_unspecified
    • Not_for_sale_in_the_specified_countries_but_publisher_holds_exclusive_rights_in_those_countries_or_territories

      public static final SalesRightsTypes Not_for_sale_in_the_specified_countries_but_publisher_holds_exclusive_rights_in_those_countries_or_territories
    • Not_for_sale_in_the_specified_countries_publisher_holds_non_exclusive_rights_in_those_countries_or_territories

      public static final SalesRightsTypes Not_for_sale_in_the_specified_countries_publisher_holds_non_exclusive_rights_in_those_countries_or_territories
    • Not_for_sale_in_the_specified_countries_because_publisher_does_not_hold_rights_in_those_countries_or_territories

      public static final SalesRightsTypes Not_for_sale_in_the_specified_countries_because_publisher_does_not_hold_rights_in_those_countries_or_territories
    • For_sale_with_exclusive_rights_in_the_specified_countries_or_territories_sales_restriction_applies

      public static final SalesRightsTypes For_sale_with_exclusive_rights_in_the_specified_countries_or_territories_sales_restriction_applies
      Only for use with ONIX 3.0. Deprecated
    • For_sale_with_non_exclusive_rights_in_the_specified_countries_or_territories_sales_restriction_applies

      public static final SalesRightsTypes For_sale_with_non_exclusive_rights_in_the_specified_countries_or_territories_sales_restriction_applies
      Only for use with ONIX 3.0. Deprecated
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static SalesRightsTypes[] 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 SalesRightsTypes 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 SalesRightsTypes byCode(String code)
    • byCodeOptional

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

      public static String codeToDesciption(String code)