Module jonix.common

Enum Class PriceConstraintTypes

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

public enum PriceConstraintTypes extends Enum<PriceConstraintTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 230

Description: Price constraint type

See Also:
  • Enum Constant Details

    • No_price_specific_constraints

      public static final PriceConstraintTypes No_price_specific_constraints
      Allows positive indication that there are no additional constraints (other than those specified in <EpubUsageConstraint>). By convention, use 01 in <PriceConstraintStatus>
    • Preview

      public static final PriceConstraintTypes Preview
      Preview before purchase. Allows a retail customer, account holder or patron to view or listen to a proportion of the book before purchase. Also applies to borrowers making use of 'acquisition on demand' models in libraries, and to 'subscription' models where the purchase is made on behalf of the reader. Generally used to specify different preview percentages across different customer types

      Jonix-Comment: Introduced in Onix3

    • Lend

      public static final PriceConstraintTypes Lend
      Lendable by the purchaser to other device owner, account holder or patron, eg library lending (use where the library product is not identified with a separate <ProductIdentifier> from the consumer product). The 'primary' copy becomes unusable while the secondary copy is on loan, unless a number of concurrent borrowers is also specified
    • Time_limited_license

      public static final PriceConstraintTypes Time_limited_license
      E-publication license is time-limited. Use with code 02 from List 146 and either a time period in days, weeks or months in <PriceConstraintLimit>, or a Valid until date in <PriceConstraintLimit>. The purchased copy becomes unusable when the license expires. For clarity, a perpetual license is the default, but may be specified explicitly with code 01 from list 146, or with code 02 and a limit <Quantity> of 0 days
    • Loan_renewal

      public static final PriceConstraintTypes Loan_renewal
      Maximum number of consecutive loans or loan extensions (eg from a library) to a single device owner, account holder or patron. Note that a limit of 1 indicates that a loan cannot be renewed or extended
    • Multi_user_license

      public static final PriceConstraintTypes Multi_user_license
      E-publication license is multi-user. Maximum number of concurrent users licensed to use the product should be given in <PriceConstraintLimit>. For clarity, unlimited concurrencyis the default, but may be specified explicitly with code 01 from list 146, or with code 02 and a limit <Quantity> of 0 users
    • Preview_on_premises

      public static final PriceConstraintTypes Preview_on_premises
      Preview locally before purchase. Allows a retail customer, account holder or patron to view a proportion of the book (or the whole book, if no proportion is specified) before purchase, but ONLY while located physically in the retailer's store (eg while logged on to the store wifi). Also applies to borrowers making use of 'acquisition on demand' models in libraries

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)