Module jonix.common

Enum Class ResourceFeatureTypes

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

public enum ResourceFeatureTypes extends Enum<ResourceFeatureTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 160

Description: Resource feature type

See Also:
  • Enum Constant Details

    • Required_credit

      public static final ResourceFeatureTypes Required_credit
      Credit that must be displayed when a resource is used (eg 'Photo Jerry Bauer' or '© Magnum Photo'). Credit text should be carried in <FeatureNote>
    • Caption

      public static final ResourceFeatureTypes Caption
      Explanatory caption that may accompany a resource (eg use to identify an author in a photograph). Caption text should be carried in <FeatureNote>
    • Length_in_minutes

      public static final ResourceFeatureTypes Length_in_minutes
      Approximate length in minutes of an audio or video resource. <FeatureValue> should contain the length of time as an integer number of minutes
    • ISNI_of_resource_contributor

      public static final ResourceFeatureTypes ISNI_of_resource_contributor
      Use to link resource to a contributor unambiguously, for example with Resource Content types 04, 11-14 from List 158, particularly where the product has more than a single contributor. <FeatureValue> contains the 16-digit ISNI, which must match an ISNI given in an instance of <Contributor>
    • Proprietary_ID_of_resource_contributor

      public static final ResourceFeatureTypes Proprietary_ID_of_resource_contributor
      Use to link resource to a contributor unambiguously, for example with Resource Content types 04, 11-14 from List 158, particularly where the product has more than a single contributor. <FeatureValue> contains the proprietary ID, which must match a proprietary ID given in an instance of <Contributor>
    • Resource_alternative_text

      public static final ResourceFeatureTypes Resource_alternative_text
      <FeatureNote> is Alternative text for the resource, which might be presented to visually-impaired readers

      Jonix-Comment: Introduced in Onix3

    • Background_color_of_image_resource

      public static final ResourceFeatureTypes Background_color_of_image_resource
      <FeatureValue> is a 24-bit RGB or 32-bit RBGA color in hexadecimal, eg fff2de for an opaque warm cream. Used when the resource - for example a 3D image of the product - includes a background, or if used with an alpha channel, when the image is irregularly shaped or contains a semi-transparent shadow thrown against a background

      Jonix-Comment: Introduced in Onix3

    • Attribute_of_product_image_resource

      public static final ResourceFeatureTypes Attribute_of_product_image_resource
      <FeatureValue> is an ONIX code from List 256 that describes an attribute of a product image resource (eg perspective, content)

      Jonix-Comment: Introduced in Onix3

    • Background_color_of_page

      public static final ResourceFeatureTypes Background_color_of_page
      <FeatureValue> is a 24-bit RGB color in hexadecimal, eg ffc300 for a rich yellow-orange, used when the resource supplier requests a specific background color be displayed behind the resource on a web page

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

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

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

      public static String codeToDesciption(String code)