- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<LicenseExpressionTypes>
,Constable
Enum
that corresponds to ONIX Codelist 218
Description: License expression 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 ConstantDescriptionDocument (eg Word file, PDF or web page) Intended for the lay readerOpen Digital Rights Language (ODRL) in JSON-LD format.Document (eg Word file, PDF or web page) Intended for the legal specialist reader -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LicenseExpressionTypes
static Optional<LicenseExpressionTypes>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static LicenseExpressionTypes
Returns the enum constant of this class with the specified name.static LicenseExpressionTypes[]
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
-
Human_readable
Document (eg Word file, PDF or web page) Intended for the lay reader -
Professional_readable
Document (eg Word file, PDF or web page) Intended for the legal specialist reader -
ONIX_PL
-
ODRL
Open Digital Rights Language (ODRL) in JSON-LD format. Used for example to express TDM licenses using the W3C TDM Reservation ProtocolJonix-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
-