OSID Logo
OSID Specifications
voting rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.rules.BallotConstrainer
Implementsosid.OsidConstrainer
Description

A BallotConstrainer describes the rules for constraining the resources in a ballot.

MethodgetBallotConstrainerRecord
Description

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

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