Interface Result
- All Superinterfaces:
Browsable, Extensible, OsidResult
The Result is the output of a rule execution.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets a boolean result from the rule evaluation.getResultRecord(Type resultRecordType) Gets the result record corresponding to the givenResultRecordrecordType.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
-
getBooleanValue
boolean getBooleanValue()Gets a boolean result from the rule evaluation. Based on the definition of the Rule, the result may be a simple boolean value or something more complex defined in the record type.- Returns:
trueorfalse- Compliance:
mandatory- This method must be implemented.
-
getResultRecord
Gets the result record corresponding to the givenResultRecordrecordType. This method is used to retrieve an object implementing the requested record. TheresultRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(resultRecordType)istrue.- Parameters:
resultRecordType- the type of result record to retrieve- Returns:
- the result record
- Throws:
NullArgumentException-resultRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(resultRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-