Module jonix.common

Enum Class ContentAudiences

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

public enum ContentAudiences extends Enum<ContentAudiences> implements OnixCodelist
Enum that corresponds to ONIX Codelist 154

Description: Content audience

See Also:
  • Enum Constant Details

    • Unrestricted

      public static final ContentAudiences Unrestricted
      Any audience
    • Restricted

      public static final ContentAudiences Restricted
      Distribution by agreement between the parties to the ONIX exchange (this value is provided to cover applications where ONIX content includes material which is not for general distribution)
    • Booktrade

      public static final ContentAudiences Booktrade
      Distributors, bookstores, publisher's own staff etc
    • End_customers

      public static final ContentAudiences End_customers
    • Librarians

      public static final ContentAudiences Librarians
    • Teachers

      public static final ContentAudiences Teachers
    • Students

      public static final ContentAudiences Students
    • Press

      public static final ContentAudiences Press
      Press or other media
    • Shopping_comparison_service

      public static final ContentAudiences Shopping_comparison_service
      Where a specially formatted description is required for this audience
    • Search_engine_index

      public static final ContentAudiences Search_engine_index
      Text not intended for display, but may be used (in addition to any less restricted text) for indexing and search
    • Bloggers

      public static final ContentAudiences Bloggers
      (Including vloggers, influencers etc) Where this is distinct from end customers or the Press

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)