Module jonix.common

Enum Class TextItemTypes

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

public enum TextItemTypes extends Enum<TextItemTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 42

Description: Text item type

See Also:
  • Enum Constant Details

    • Textual_work

      public static final TextItemTypes Textual_work
      A complete work which is published as a content item in a product which carries two or more such works, eg when two or three novels are published in a single omnibus volume
    • Front_matter

      public static final TextItemTypes Front_matter
      Text components such as Preface, Introduction etc which appear as preliminaries to the main body of text content in a product
    • Body_matter

      public static final TextItemTypes Body_matter
      Text components such as Part, Chapter, Section etc which appear as part of the main body of text content in a product
    • Back_matter

      public static final TextItemTypes Back_matter
      Text components such as Index which appear after the main body of text in a product
    • Serial_item_miscellaneous_or_unspecified

      public static final TextItemTypes Serial_item_miscellaneous_or_unspecified
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Research_article

      public static final TextItemTypes Research_article
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Review_article

      public static final TextItemTypes Review_article
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Letter

      public static final TextItemTypes Letter
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Short_communication

      public static final TextItemTypes Short_communication
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Erratum

      public static final TextItemTypes Erratum
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Abstract

      public static final TextItemTypes Abstract
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Book_review_or_review_of_other_publication

      public static final TextItemTypes Book_review_or_review_of_other_publication
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Editorial

      public static final TextItemTypes Editorial
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Product_review

      public static final TextItemTypes Product_review
      For journals

      Jonix-Comment: Deprecated in Onix3

    • Index

      public static final TextItemTypes Index
      Jonix-Comment: Deprecated in Onix3
    • Obituary

      public static final TextItemTypes Obituary
      For journals

      Jonix-Comment: Deprecated in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)