Package edu.harvard.hul.ois.jhove
Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- edu.harvard.hul.ois.jhove.PropertyType
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyType>
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:
Property
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AESAUDIOMETADATAProperty type for anAESAudioMetadata.BOOLEANProperty type for aBooleanobject, or abooleanif the Arity is Array.BYTEProperty type for aByteobject, or abyteif the Arity is Array.CHARACTERProperty type for aCharacterobject, or acharif the Arity is Array.DATEProperty type for aDateobject.DOUBLEProperty type for aDoubleobject, or adoubleif the Arity is Array.FLOATProperty type for aFloatobject, or afloatif the Arity is Array.INTEGERProperty type for anIntegerobject, or anintegerif the Arity is Array.LONGProperty type for aLongobject, or alongif the Arity is Array.NISOIMAGEMETADATAProperty type for aNisoImageMetadata.OBJECTProperty type for anObject.PROPERTYProperty type for aPropertyobject.RATIONALProperty type for aRationalobject.SHORTProperty type for aShortobject, or ashortif the Arity is Array.STRINGProperty type for aStringobject.TEXTMDMETADATAProperty type for aTextMDMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static PropertyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final PropertyType BOOLEAN
Property type for aBooleanobject, or abooleanif the Arity is Array.
-
BYTE
public static final PropertyType BYTE
Property type for aByteobject, or abyteif the Arity is Array.
-
CHARACTER
public static final PropertyType CHARACTER
Property type for aCharacterobject, or acharif the Arity is Array.
-
DATE
public static final PropertyType DATE
Property type for aDateobject.
-
DOUBLE
public static final PropertyType DOUBLE
Property type for aDoubleobject, or adoubleif the Arity is Array.
-
FLOAT
public static final PropertyType FLOAT
Property type for aFloatobject, or afloatif the Arity is Array.
-
INTEGER
public static final PropertyType INTEGER
Property type for anIntegerobject, or anintegerif the Arity is Array.
-
LONG
public static final PropertyType LONG
Property type for aLongobject, or alongif the Arity is Array.
-
OBJECT
public static final PropertyType OBJECT
Property type for anObject.
-
AESAUDIOMETADATA
public static final PropertyType AESAUDIOMETADATA
Property type for anAESAudioMetadata.
-
NISOIMAGEMETADATA
public static final PropertyType NISOIMAGEMETADATA
Property type for aNisoImageMetadata.
-
TEXTMDMETADATA
public static final PropertyType TEXTMDMETADATA
Property type for aTextMDMetadata.
-
PROPERTY
public static final PropertyType PROPERTY
Property type for aPropertyobject.
-
SHORT
public static final PropertyType SHORT
Property type for aShortobject, or ashortif the Arity is Array.
-
STRING
public static final PropertyType STRING
Property type for aStringobject.
-
RATIONAL
public static final PropertyType RATIONAL
Property type for aRationalobject.
-
-
Field Detail
-
name
public final String name
A String name for the type, used for reporting.
-
-
Method Detail
-
values
public static PropertyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyType c : PropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<PropertyType>
-
-