Module jonix.common

Enum Class ResourceModes

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

public enum ResourceModes extends Enum<ResourceModes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 159

Description: Resource mode

See Also:
  • Enum Constant Details

    • Application

      public static final ResourceModes Application
      An executable together with data on which it operates
    • Audio

      public static final ResourceModes Audio
      A sound recording
    • Image

      public static final ResourceModes Image
      A still image
    • Text

      public static final ResourceModes Text
      Readable text, with or without associated images etc
    • Video

      public static final ResourceModes Video
      Moving images, with or without accompanying sound
    • Multi_mode

      public static final ResourceModes Multi_mode
      A website or other supporting resource delivering content in a variety of modes
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)