Module jonix.common

Enum Class ContentDateRoles

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

public enum ContentDateRoles extends Enum<ContentDateRoles> implements OnixCodelist
Enum that corresponds to ONIX Codelist 155

Description: Content date role

See Also:
  • Enum Constant Details

    • Publication_date

      public static final ContentDateRoles Publication_date
      Nominal date of publication (of the content item or supporting resource)
    • Broadcast_date

      public static final ContentDateRoles Broadcast_date
      Date when a TV or radio program was / will be broadcast
    • From_date

      public static final ContentDateRoles From_date
      Date from which a content item or supporting resource may be referenced or used. The content is embargoed until this date
    • Until_date

      public static final ContentDateRoles Until_date
      Date until which a content item or supporting resource may be referenced or used
    • Last_updated

      public static final ContentDateRoles Last_updated
      Date when a resource was last changed or updated
    • From_until_date

      public static final ContentDateRoles From_until_date
      Combines From date and Until date to define a period (both dates are inclusive). Use for example with dateformat 06
    • Available_from

      public static final ContentDateRoles Available_from
      Date from which a supporting resource is available for download. Note that this date also implies that it can be immediately displayed to the intended audience, unless a From date (code 14) is also supplied and is later than the Available from date
    • Available_until

      public static final ContentDateRoles Available_until
      Date until which a supporting resource is available for download. Note that this date does not imply it must be removed from display to the intended audience on this date - for this, use Until date (code 15)
    • Associated_start_date

      public static final ContentDateRoles Associated_start_date
      Start date referenced by the supporting resource, for example, the 'earliest exam date' for an official recommendation

      Jonix-Comment: Introduced in Onix3

    • Associated_end_date

      public static final ContentDateRoles Associated_end_date
      End date referenced by the supporting resource, for example, the 'latest exam date' for an official recommendation

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)