Package com.mayam.wf.attributes.shared
Enum Class Variety
- All Implemented Interfaces:
Serializable
,Comparable<Variety>
,Constable
Used for generic classes and/or wrapper classes of primitive types
to narrow down their use as value classes for attributes, making
it easier to find a good widget representation.
- Author:
- Markus MÃ¥rtensson
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
The value class for the variety.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAsset identifier string which, when used together with anAssetType
, uniquely identifies an asset.Asset identifier string typically meant for human eyes.Duration in milliseconds.Typically no value expected, but an expression found in the default value is instead used which operates on the subject as a whole.JSON data.No particular distinction.File size in bytes -
Method Summary
-
Enum Constant Details
-
NONE
No particular distinction. Used as default value ofDeclare.variety()
for the majority of cases where a distinction is not necessary or where the value class itself provides a sufficient one. -
ASSET_IDENTITY
Asset identifier string which, when used together with anAssetType
, uniquely identifies an asset. -
ASSET_SITE_IDENTITY
Asset identifier string typically meant for human eyes. Follows a convention set per site or mandated by the MAM. -
DURATION_MS
Duration in milliseconds. -
SIZE_BYTES
File size in bytes -
JSON
JSON data. Not for human consumption. -
TIMECODED_TEXT
-
EXPRESSION
Typically no value expected, but an expression found in the default value is instead used which operates on the subject as a whole. -
PERCENT
-
-
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
-