Module jonix.common

Enum Class CitedContentTypes

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

public enum CitedContentTypes extends Enum<CitedContentTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 156

Description: Cited content type

See Also:
  • Enum Constant Details

    • Review

      public static final CitedContentTypes Review
      The full text of a review in a third-party publication in any medium
    • Bestseller_list

      public static final CitedContentTypes Bestseller_list
    • Media_mention

      public static final CitedContentTypes Media_mention
      Other than a review
    • One_locality_one_book_program

      public static final CitedContentTypes One_locality_one_book_program
      Inclusion in a program such as 'Chicago Reads', 'Seattle Reads', 'Canada Reads', 'One Dublin, one book'
    • Curated_list

      public static final CitedContentTypes Curated_list
      For example a 'best books of the year' or '25 books you should have read' list, without regard to their bestseller status

      Jonix-Comment: Introduced in Onix3

    • Commentary_discussion

      public static final CitedContentTypes Commentary_discussion
      For example a third party podcast episode, social media message, newsletter issue, other commentary (see also code 03 for very brief items)

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)