Enum Class FailureHandlingKind

java.lang.Object
java.lang.Enum<FailureHandlingKind>
org.graalvm.tools.lsp.server.types.FailureHandlingKind
All Implemented Interfaces:
Serializable, Comparable<FailureHandlingKind>, Constable

public enum FailureHandlingKind extends Enum<FailureHandlingKind>
  • Enum Constant Details

    • Abort

      public static final FailureHandlingKind Abort
      Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed.
    • Transactional

      public static final FailureHandlingKind Transactional
      All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace.
    • TextOnlyTransactional

      public static final FailureHandlingKind TextOnlyTransactional
      If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling startegy is abort.
    • Undo

      public static final FailureHandlingKind Undo
      The client tries to undo the operations already executed. But there is no guaruntee that this is succeeding.
  • Method Details

    • values

      public static FailureHandlingKind[] 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 FailureHandlingKind 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
    • getStringValue

      public String getStringValue()
    • get

      public static FailureHandlingKind get(String stringValue)