Package edu.harvard.hul.ois.jhove
Enum Class PropertyArity
- All Implemented Interfaces:
Serializable,Comparable<PropertyArity>,java.lang.constant.Constable
This class represents the arity (structure type) of a Property.
Applications will not create or modify PropertyArities, but will
use one of the predefined PropertyArity instances
ARRAY, LIST, MAP, SCALAR, or SET.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn Arity corresponding to a Java array.An Arity corresponding to java.util.List or any of its derived classes.An Arity corresponding to java.util.Map or any of its derived classes.An Arity corresponding to a simple object, which must be of a type corresponding to one of the instances ofPropertyType.An Arity corresponding to java.util.Set or any of its derived classes. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()static PropertyArityReturns the enum constant of this class with the specified name.static PropertyArity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY
An Arity corresponding to a Java array. For the Java typesInteger,Boolean,Byte,Character,Double,Float,Long, andShort, a Property with arity ARRAY is an array of primitive Java types rather than Objects (e.g.,intrather thanInteger). -
LIST
An Arity corresponding to java.util.List or any of its derived classes. -
MAP
An Arity corresponding to java.util.Map or any of its derived classes. -
SCALAR
An Arity corresponding to a simple object, which must be of a type corresponding to one of the instances ofPropertyType. -
SET
An Arity corresponding to java.util.Set or any of its derived classes.
-
-
Field Details
-
name
A String name for the Arity, used for reporting.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<PropertyArity>
-