Interface Rule

All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule

public interface Rule extends OsidRule

A Rule represents an entity that can be evaluated or executed.

  • Method Details

    • getRuleRecord

      RuleRecord getRuleRecord(Type ruleRecordType) throws OperationFailedException
      Gets the rule record corresponding to the given Rule record Type .This method is used to retrieve an object implementing the requested record. The ruleRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(ruleRecordType) is true .
      Parameters:
      ruleRecordType - the type of rule record to retrieve
      Returns:
      the rule record
      Throws:
      NullArgumentException - ruleRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(ruleRecordType) is false
      Compliance:
      mandatory - This method must be implemented.