- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<PriceConstraintTypes>
,Constable
Enum
that corresponds to ONIX Codelist 230
Description: Price constraint type
-
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 ConstantDescriptionLendable 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).Maximum number of consecutive loans or loan extensions (eg from a library) to a single device owner, account holder or patron.E-publication license is multi-user.Allows positive indication that there are no additional constraints (other than those specified in <EpubUsageConstraint>).Preview before purchase.Preview locally before purchase.E-publication license is time-limited. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PriceConstraintTypes
static Optional<PriceConstraintTypes>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static PriceConstraintTypes
Returns the enum constant of this class with the specified name.static PriceConstraintTypes[]
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
-
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
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 typesJonix-Comment: Introduced in Onix3
-
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
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
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
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
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 librariesJonix-Comment: Introduced in Onix3
-
-
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
-