OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.CheckResult
Implementsosid.OsidResult
Used Byosid.rules.check.CheckResultList
Description

The results of an evaluation. A CheckResult is issued for a Check evaluation and is considered successful if hasFailed() is false.

MethodgetCheckId
Description

Gets the Id of the Check that produced this result.

Returnosid.id.Id the check Id
Compliancemandatory This method must be implemented.
MethodgetCheck
Description

Gets the Check that produced this result.

Returnosid.rules.check.Check the check
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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.DisplayText a message
Compliancemandatory This 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.TypecheckResultRecordType the type of check result record to retrieve
Returnosid.rules.check.records.CheckResultRecord the check result record
ErrorsNULL_ARGUMENT checkResultRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(checkResultRecordType) is false
Compliancemandatory This method must be implemented.