OSID Logo
OSID Specifications
rules check package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.check.CheckResult
Implementsosid.OsidResult
Description

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.

MethodgetInstructionId
Description

Gets the instruction Id for this result.

Returnosid.id.Idthe instruction Id
CompliancemandatoryThis method must be implemented.
MethodgetInstruction
Description

Gets the instruction for this result.

Returnosid.rules.check.Instructionthe instruction
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasFailed
Description

Tests if the corresponding Check has failed. Failed checks resulting in warnings should return false.

Returnboolean true if this check failed, false otherwise
CompliancemandatoryThis method must be implemented.
MethodisWarning
Description

Tests if the informational message should be displayed as a warning.

Returnboolean true if this check is a warning, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetMessage
Description

Gets a message which may be the cause of the failure, a warning message, or the weather.

Returnosid.locale.DisplayTexta message
CompliancemandatoryThis method must be implemented.
MethodgetCheckResultRecord
Description

Gets the check result record corresponding to the given 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 .

Parametersosid.type.TypecheckResultRecordTypethe type of check result record to retrieve
Returnosid.rules.check.records.CheckResultRecordthe check result record
ErrorsNULL_ARGUMENT checkresultRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(checkResultRecordType) is false
CompliancemandatoryThis method must be implemented.