Enum Class OperationStatus

java.lang.Object
java.lang.Enum<OperationStatus>
ro.sync.exml.workspace.api.OperationStatus
All Implemented Interfaces:
Serializable, Comparable<OperationStatus>, Constable

@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum OperationStatus extends Enum<OperationStatus>
The status of an operation/action. Some statuses have colors associated.
  • Enum Constant Details

    • NEUTRAL

      public static final OperationStatus NEUTRAL
      Neutral status. No color associated with this status.
    • SUCCESSFUL

      public static final OperationStatus SUCCESSFUL
      The operation was successful. Green is associated with this status.
    • SUCCESSFUL_WITH_WARNINGS

      public static final OperationStatus SUCCESSFUL_WITH_WARNINGS
      The operation was successful, but with warnings. Yellow is associated with this status.
    • FAILED

      public static final OperationStatus FAILED
      The operation has failed. Red is associated with this status.
  • Method Details

    • values

      public static OperationStatus[] 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

      public static OperationStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null