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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf upgrading or removing a package would remove a type, and one or more items refer to that type, then fail the change.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 Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CJ1TypePackageTypeRemovalBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-