OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.rules.BallotConstrainerEnabler
Implementsosid.OsidEnabler
Description

A BallotConstrainerEnabler describes the rules for making a BallotConstrainer effective.

MethodgetBallotConstrainerEnablerRecord
Description

Gets the ballot constrainer enabler record corresponding to the given BallotConstrainerEnabler record Type. This method is used to retrieve an object implementing the requested record. The ballotConstrainerEnablerRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(ballotConstrainerEnablerRecordType) is true .

Parametersosid.type.TypeballotConstrainerEnablerRecordTypethe type of ballot constrainer enabler record to retrieve
Returnosid.voting.rules.records.BallotConstrainerEnablerRecordthe ballot constrainer enabler record
ErrorsNULL_ARGUMENT ballotConstrainerEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ballotConstrainerEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.