Enum Action
- All Implemented Interfaces:
Serializable
,Comparable<Action>
,Constable
Defines the action to apply on new digital assets when uploading.
The possible actions are:
- Attach Attach all new digital assets to the media field.
- Nothing Only upload assets without attaching to the media field.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAttach()
Checks whether the action is set to attach.boolean
Checks whether the action is set to nothing.static Action
Parses the action.toString()
static Action
Returns the enum constant of this type with the specified name.static Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ATTACH
Option to upload and attach. -
NOTHING
Option to upload only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
parse
Parses the action.- Parameters:
type
- the type- Returns:
- the action
-
isAttach
public boolean isAttach()Checks whether the action is set to attach. -
isNothing
public boolean isNothing()Checks whether the action is set to nothing. -
toString
-