Enum Class PropertyType

java.lang.Object
java.lang.Enum<PropertyType>
edu.harvard.hul.ois.jhove.PropertyType
All Implemented Interfaces:
Serializable, Comparable<PropertyType>, java.lang.constant.Constable

public enum PropertyType extends Enum<PropertyType>
This class defines enumerated types for an Property of some given content. Applications will not create or modify PropertyTypes, but will use one of the predefined PropertyType instances BOOLEAN, BYTE, CHARACTER, DATE, DOUBLE, FLOAT, INTEGER, LONG, OBJECT, PROPERTY, SHORT, STRING, RATIONAL, or NISOIMAGEMETADATA.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Property type for an AESAudioMetadata.
    Property type for a Boolean object, or a boolean if the Arity is Array.
    Property type for a Byte object, or a byte if the Arity is Array.
    Property type for a Character object, or a char if the Arity is Array.
    Property type for a Date object.
    Property type for a Double object, or a double if the Arity is Array.
    Property type for a Float object, or a float if the Arity is Array.
    Property type for an Integer object, or an integer if the Arity is Array.
    Property type for a Long object, or a long if the Arity is Array.
    Property type for a NisoImageMetadata.
    Property type for an Object.
    Property type for a Property object.
    Property type for a Rational object.
    Property type for a Short object, or a short if the Arity is Array.
    Property type for a String object.
    Property type for a TextMDMetadata.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    A String name for the type, used for reporting.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    static PropertyType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BOOLEAN

      public static final PropertyType BOOLEAN
      Property type for a Boolean object, or a boolean if the Arity is Array.
    • BYTE

      public static final PropertyType BYTE
      Property type for a Byte object, or a byte if the Arity is Array.
    • CHARACTER

      public static final PropertyType CHARACTER
      Property type for a Character object, or a char if the Arity is Array.
    • DATE

      public static final PropertyType DATE
      Property type for a Date object.
    • DOUBLE

      public static final PropertyType DOUBLE
      Property type for a Double object, or a double if the Arity is Array.
    • FLOAT

      public static final PropertyType FLOAT
      Property type for a Float object, or a float if the Arity is Array.
    • INTEGER

      public static final PropertyType INTEGER
      Property type for an Integer object, or an integer if the Arity is Array.
    • LONG

      public static final PropertyType LONG
      Property type for a Long object, or a long if the Arity is Array.
    • OBJECT

      public static final PropertyType OBJECT
      Property type for an Object.
    • AESAUDIOMETADATA

      public static final PropertyType AESAUDIOMETADATA
      Property type for an AESAudioMetadata.
    • NISOIMAGEMETADATA

      public static final PropertyType NISOIMAGEMETADATA
      Property type for a NisoImageMetadata.
    • TEXTMDMETADATA

      public static final PropertyType TEXTMDMETADATA
      Property type for a TextMDMetadata.
    • PROPERTY

      public static final PropertyType PROPERTY
      Property type for a Property object.
    • SHORT

      public static final PropertyType SHORT
      Property type for a Short object, or a short if the Arity is Array.
    • STRING

      public static final PropertyType STRING
      Property type for a String object.
    • RATIONAL

      public static final PropertyType RATIONAL
      Property type for a Rational object.
  • Field Details

    • name

      public final String name
      A String name for the type, used for reporting.
  • Method Details

    • values

      public static PropertyType[] 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 PropertyType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PropertyType>