java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.bitol.contractevaluator.ContractEvaluationResult

public class ContractEvaluationResult extends Object
ContractEvaluationResult is the outcome of checking an asset against its contract: the findings, and the number of checks that could be made.
  • Constructor Details

    • ContractEvaluationResult

      public ContractEvaluationResult()
      Default constructor
  • Method Details

    • getFindings

      public List<ContractFinding> getFindings()
      Return the findings, in the order that they were made.
      Returns:
      list
    • getCheckCount

      public int getCheckCount()
      Return the number of checks that were made against something that is known about the asset.
      Returns:
      count
    • getFindingCount

      public int getFindingCount(ContractFinding.Kind kind)
      Return the number of findings of a particular kind.
      Parameters:
      kind - sort of finding
      Returns:
      count
    • hasShapeDrift

      public boolean hasShapeDrift()
      Has the shape of the data moved away from the contract?
      Returns:
      boolean
    • hasValueViolation

      public boolean hasValueViolation()
      Does a measured value break a rule that makes the data unfit to use?
      Returns:
      boolean
    • describeFindings

      public String describeFindings(int maxLength)
      Describe the findings that matter, most serious first, in a text of limited length.
      Parameters:
      maxLength - the most characters to return
      Returns:
      text, or null if there are no findings