Enum Class CJ1TypePackageTypeRemovalBehavior

java.lang.Object
java.lang.Enum<CJ1TypePackageTypeRemovalBehavior>
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypePackageTypeRemovalBehavior
All Implemented Interfaces:
Serializable, Comparable<CJ1TypePackageTypeRemovalBehavior>, Constable

@JsonClassDescription("Type package removal behavior.") public enum CJ1TypePackageTypeRemovalBehavior extends Enum<CJ1TypePackageTypeRemovalBehavior>
The type removal behavior for package upgrades/uninstalls.
  • Enum Constant Details

    • TYPE_REMOVAL_FAIL_IF_TYPES_REFERENCED

      public static final CJ1TypePackageTypeRemovalBehavior TYPE_REMOVAL_FAIL_IF_TYPES_REFERENCED
      If upgrading or removing a package would remove a type, and one or more items refer to that type, then fail the change.
    • TYPE_REMOVAL_REVOKE_TYPES

      public static final CJ1TypePackageTypeRemovalBehavior TYPE_REMOVAL_REVOKE_TYPES
      If upgrading or removing a package would remove a type, and one or more items refer to that type, then revoke the type from those items.
  • Method Details

    • values

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