Module jonix.common

Enum Class ExtentUnits

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

public enum ExtentUnits extends Enum<ExtentUnits> implements OnixCodelist
Enum that corresponds to ONIX Codelist 24

Description: Extent unit

See Also:
  • Enum Constant Details

    • Physical_pieces

      public static final ExtentUnits Physical_pieces
      Unbound sheets or leaves, where 'pages' is not appropriate. For example a count of the individual number of cards in a pack. Only for use in ONIX 3.0 or later. For number of pieces in eg a jigsaw, kit, board game, see <ProductFormFeature> and code 22 from list 79

      Jonix-Comment: Introduced in Onix3

    • Characters

      public static final ExtentUnits Characters
      Approximate number of characters (including spaces) of natural language text. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

    • Words

      public static final ExtentUnits Words
      Approximate number of words of natural language text
    • Pages

      public static final ExtentUnits Pages
    • Hours_integer_and_decimals

      public static final ExtentUnits Hours_integer_and_decimals
    • Minutes_integer_and_decimals

      public static final ExtentUnits Minutes_integer_and_decimals
    • Seconds_integer_only

      public static final ExtentUnits Seconds_integer_only
    • Tracks

      public static final ExtentUnits Tracks
      Of an audiobook on CD (or a similarly divided selection of audio files). Conventionally, each track is 3-6 minutes of running time, and track counts are misleading and inappropriate if the average track duration is significantly more or less than this. Note that track breaks are not necessarily aligned with structural breaks in the text (eg chapter breaks)
    • Discs

      public static final ExtentUnits Discs
      Of an audiobook on multiple Red Book audio CDs. Conventionally, each disc is 60-70 minutes of running time, and disc counts are misleading and inappropriate if the average disc duration is significantly more or less than this (for example if the discs are Yellow Book CDs containing mp3 files). Note that disc breaks are not necessarily aligned with structural breaks in the text (eg chapter breaks). Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

    • Hours_HHH

      public static final ExtentUnits Hours_HHH
      Fill with leading zeroes if any elements are missing
    • Hours_and_minutes_HHHMM

      public static final ExtentUnits Hours_and_minutes_HHHMM
      Fill with leading zeroes if any elements are missing
    • Hours_minutes_seconds_HHHMMSS

      public static final ExtentUnits Hours_minutes_seconds_HHHMMSS
      Fill with leading zeroes if any elements are missing. If centisecond precision is required, use HHHMMSScc. Only for use in ONIX 3.0 or later
    • Bytes

      public static final ExtentUnits Bytes
    • Kbytes

      public static final ExtentUnits Kbytes
    • Mbytes

      public static final ExtentUnits Mbytes
    • Chapters

      public static final ExtentUnits Chapters
      Number of chapters (or other similar subdivisions) of the content. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)