Module jonix.common

Enum Class ResourceFileDateRoles

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

public enum ResourceFileDateRoles extends Enum<ResourceFileDateRoles> implements OnixCodelist
Enum that corresponds to ONIX Codelist 254

Description: Resource file date role code

Jonix-Comment: Introduced in Onix3

See Also:
  • Enum Constant Details

    • Last_updated

      public static final ResourceFileDateRoles Last_updated
      Date when a resource was last changed or updated
    • Available_from

      public static final ResourceFileDateRoles Available_from
      Date from which a resource is available for download
    • Available_until

      public static final ResourceFileDateRoles Available_until
      Date until which a resource is available for download
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)