Module jonix.common

Enum Class ResourceForms

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

public enum ResourceForms extends Enum<ResourceForms> implements OnixCodelist
Enum that corresponds to ONIX Codelist 161

Description: Resource form

See Also:
  • Enum Constant Details

    • Linkable_resource

      public static final ResourceForms Linkable_resource
      A resource that may be accessed by a hyperlink. The current host (eg the ONIX sender, who may be the publisher) will provide ongoing hosting services for the resource for the active life of the product (or at least until the Until Date specified in <ContentDate>). The ONIX recipient may embed the URL in a consumer facing-website (eg as the src attribute in an <img> link), and need not host an independent copy of the resource
    • Downloadable_file

      public static final ResourceForms Downloadable_file
      A file that may be downloaded on demand for third-party use. The ONIX sender will host a copy of the resource until the specified Until Date, but only for the ONIX recipient's direct use. The ONIX recipient should download a copy of the resource, and must host an independent copy of the resource if it is used on a consumer-facing website. Special attention should be paid to the 'Last Updated' <ContentDate> to ensure the independent copy of the resource is kept up to date
    • Embeddable_application

      public static final ResourceForms Embeddable_application
      An application which is supplied in a form which can be embedded into a third-party webpage. As type 02, except the resource contains active content such as JavaScript, Flash, etc
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)