Class ContractEvaluationResult
java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.bitol.contractevaluator.ContractEvaluationResult
ContractEvaluationResult is the outcome of checking an asset against its contract: the findings, and the
number of checks that could be made.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeFindings(int maxLength) Describe the findings that matter, most serious first, in a text of limited length.intReturn the number of checks that were made against something that is known about the asset.intReturn the number of findings of a particular kind.Return the findings, in the order that they were made.booleanHas the shape of the data moved away from the contract?booleanDoes a measured value break a rule that makes the data unfit to use?
-
Constructor Details
-
ContractEvaluationResult
public ContractEvaluationResult()Default constructor
-
-
Method Details
-
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
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
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
-