Enum Action
- java.lang.Object
-
- java.lang.Enum<Action>
-
- com.orchestranetworks.addon.dama.ext.enumeration.Action
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Action>
public enum Action extends java.lang.Enum<Action>
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAttach()
Checks whether the action is set to attach.boolean
isNothing()
Checks whether the action is set to nothing.static Action
parse(java.lang.String type)
Parses the action.java.lang.String
toString()
static Action
valueOf(java.lang.String name)
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.
-
-
-
Method Detail
-
values
public static Action[] 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 (Action c : Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Action valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static Action parse(java.lang.String type)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Action>
-
-