# Enum Class CATypePackageTypeRemovalBehavior

java.lang.Object
java.lang.Enum<CATypePackageTypeRemovalBehavior>
com.io7m.cardant.model.type_package.CATypePackageTypeRemovalBehavior

All Implemented Interfaces:
  `Serializable`, `Comparable<CATypePackageTypeRemovalBehavior>`, `Constable`

public enum CATypePackageTypeRemovalBehavior extends Enum<CATypePackageTypeRemovalBehavior>
The type removal behavior for package upgrades/uninstalls.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `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 Summary

  Modifier and Type
  Method
  Description
  `static CATypePackageTypeRemovalBehavior`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static CATypePackageTypeRemovalBehavior[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### TYPE_REMOVAL_FAIL_IF_TYPES_REFERENCED

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