java.lang.Object
java.lang.Enum<ODCSContractEvaluatorGuard>
org.odpi.openmetadata.adapters.connectors.integration.bitol.contractevaluator.ODCSContractEvaluatorGuard
All Implemented Interfaces:
Serializable, Comparable<ODCSContractEvaluatorGuard>, Constable

public enum ODCSContractEvaluatorGuard extends Enum<ODCSContractEvaluatorGuard>
ODCSContractEvaluatorGuard describes the guards produced by the ODCS Contract Evaluator governance action service.
  • Enum Constant Details

    • CONTRACT_PASSED

      public static final ODCSContractEvaluatorGuard CONTRACT_PASSED
      Everything that could be checked meets the contract.
    • CONTRACT_BUSINESS_VIOLATION

      public static final ODCSContractEvaluatorGuard CONTRACT_BUSINESS_VIOLATION
      A measured value breaks the contract.
    • CONTRACT_CRITICAL_DRIFT

      public static final ODCSContractEvaluatorGuard CONTRACT_CRITICAL_DRIFT
      The shape of the data has moved away from the contract.
    • CONTRACT_NOT_FOUND

      public static final ODCSContractEvaluatorGuard CONTRACT_NOT_FOUND
      No contract covers the asset.
    • CONTRACT_NOT_MEASURED

      public static final ODCSContractEvaluatorGuard CONTRACT_NOT_MEASURED
      Nothing is known about the asset that the contract can be checked against.
    • NO_TARGETS

      public static final ODCSContractEvaluatorGuard NO_TARGETS
      No action targets were supplied.
    • MULTIPLE_TARGETS

      public static final ODCSContractEvaluatorGuard MULTIPLE_TARGETS
      More than one asset was supplied.
  • Field Details

    • name

      public final String name
    • completionStatus

      public final CompletionStatus completionStatus
    • description

      public final String description
  • Method Details

    • values

      public static ODCSContractEvaluatorGuard[] 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 ODCSContractEvaluatorGuard 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
    • getName

      public String getName()
      Return the name of the guard.
      Returns:
      string name
    • getCompletionStatus

      public CompletionStatus getCompletionStatus()
      Return the typical completion status used with this guard.
      Returns:
      completion status
    • getDescription

      public String getDescription()
      Return the description of the guard.
      Returns:
      text
    • getGuardTypes

      public static List<GuardType> getGuardTypes()
      Return details of all the guards.
      Returns:
      guard types
    • getGuardType

      public GuardType getGuardType()
      Return details of a specific guard.
      Returns:
      guard type
    • toString

      public String toString()
      Output of this enum class and main value.
      Overrides:
      toString in class Enum<ODCSContractEvaluatorGuard>
      Returns:
      string showing enum value