Interface CheckResult
- All Superinterfaces:
Browsable, Extensible, OsidResult
The results of an evaluation. A CheckResult is issued for a
Check evaluation and is considered successful if
hasFailed() is false.
-
Method Summary
Modifier and TypeMethodDescriptiongetCheck()Gets theCheckthat produced this result.Gets theIdof theCheckthat produced this result.getCheckResultRecord(Type checkResultRecordType) Gets the check result record corresponding to the givenCheckResultrecordType.Gets a message which may be the cause of the failure, a warning message, or the weather.booleanTests if the correspondingCheckhas failed.booleanTests if the informational message should be displayed as a warning.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.
-
Method Details
-
getCheckId
Id getCheckId()Gets theIdof theCheckthat produced this result.- Returns:
- the check
Id - Compliance:
mandatory- This method must be implemented.
-
getCheck
Gets theCheckthat produced this result.- Returns:
- the check
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasFailed
boolean hasFailed()Tests if the correspondingCheckhas failed. Failed checks resulting in warnings should returnfalse.- Returns:
trueif this check failed,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isWarning
boolean isWarning()Tests if the informational message should be displayed as a warning.- Returns:
trueif this check is a warning,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMessage
DisplayText getMessage()Gets a message which may be the cause of the failure, a warning message, or the weather.- Returns:
- a message
- Compliance:
mandatory- This method must be implemented.
-
getCheckResultRecord
CheckResultRecord getCheckResultRecord(Type checkResultRecordType) throws OperationFailedException, PermissionDeniedException Gets the check result record corresponding to the givenCheckResultrecordType. This method is used to retrieve an object implementing the requested record. ThecheckResultRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(checkResultRecordType)istrue.- Parameters:
checkResultRecordType- the type of check result record to retrieve- Returns:
- the check result record
- Throws:
NullArgumentException-checkResultRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(checkResultRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-