Enum 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
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATTACH
      Option to upload and attach.
      NOTHING
      Option to upload only.
    • 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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ATTACH

        public static final Action ATTACH
        Option to upload and attach.
      • NOTHING

        public static final Action NOTHING
        Option to upload only.
    • 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 name
        java.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 class java.lang.Enum<Action>