public interface CheckResult extends OsidResult
The results of an evaluation. A CheckResult is issued
for every Check evaluated and is considered successful if
hasFailed() is false. Checks not evaluated
because the Check was not applicable due to the
Instruction do not produce a CheckResult. Results
for Checks evaluated as part of a dependent Agenda
are included.
| Modifier and Type | Method and Description |
|---|---|
CheckResultRecord |
getCheckResultRecord(Type checkResultRecordType)
Gets the check result record corresponding to the given
CheckResult record Type. |
Instruction |
getInstruction()
Gets the instruction for this result.
|
Id |
getInstructionId()
Gets the instruction
Id for this result. |
DisplayText |
getMessage()
Gets a message which may be the cause of the failure, a warning
message, or the weather.
|
boolean |
hasFailed()
Tests if the corresponding
Check has failed. |
boolean |
isWarning()
Tests if the informational message should be displayed as a warning.
|
getRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeId getInstructionId()
Id for this result. Id mandatory - This method must be implemented. Instruction getInstruction() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasFailed()
Check has failed. Failed
checks resulting in warnings should return false. true if this check failed, false
otherwisemandatory - This method must be implemented. boolean isWarning()
true if this check is a warning, false
otherwisemandatory - This method must be implemented. DisplayText getMessage()
mandatory - This method must be implemented. CheckResultRecord getCheckResultRecord(Type checkResultRecordType) throws OperationFailedException, PermissionDeniedException
CheckResult record Type. This method is used to
retrieve an object implementing the requested record. The
checkResultRecordType may be the Type returned
in getRecordTypes() or any of its parents in a
Type hierarchy where
hasRecordType(checkResultRecordType) is true .checkResultRecordType - the type of check result record to
retrieveNullArgumentException - checkresultRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException -
hasRecordType(checkResultRecordType) is false
mandatory - This method must be implemented.