Module jonix.common

Enum Class ResourceFileFeatureTypes

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

public enum ResourceFileFeatureTypes extends Enum<ResourceFileFeatureTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 253

Description: Resource file feature type

Jonix-Comment: Introduced in Onix3

See Also:
  • Enum Constant Details

    • File_format

      public static final ResourceFileFeatureTypes File_format
      Resource File Feature Value carries a code from List 178
    • Filename

      public static final ResourceFileFeatureTypes Filename
      Resource File Feature Value carries the filename of the supporting resource, necessary only when it is different from the last part of the path provided in <ResourceFileLink>
    • Approximate_download_file_size_in_megabytes

      public static final ResourceFileFeatureTypes Approximate_download_file_size_in_megabytes
      Resource File Feature Value carries a decimal number only, suggested no more than 2 or 3 significant digits (eg 1.7, not 1.7462 or 1.75MB)
    • MD5_hash_value

      public static final ResourceFileFeatureTypes MD5_hash_value
      MD5 hash value of the resource file. <ResourceFileFeatureValue> should contain the 128-bit digest value (as 32 hexadecimal digits). Can be used as a cryptographic check on the integrity of a resource after it has been retrieved
    • Exact_download_file_size_in_bytes

      public static final ResourceFileFeatureTypes Exact_download_file_size_in_bytes
      Resource File Feature Value carries a integer number only (eg 1831023)
    • SHA_256_hash_value

      public static final ResourceFileFeatureTypes SHA_256_hash_value
      SHA-256 hash value of the resource file. <ResourceFileFeatureValue> should contain the 256-bit digest value (as 64 hexadecimal digits). Can be used as a cryptographic check on the integrity of a resource after it has been retrieved
    • Audio_loudness

      public static final ResourceFileFeatureTypes Audio_loudness
      Resource File Feature Value is the loudness in LKFS (LUFS) used for audio normalisation - see ITU-R BS.1770
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)