| Interface | osid.voting.Candidate | ||
|---|---|---|---|
| Implements | osid.OsidRelationship | ||
| Description | 
                 A   | ||
| Method | getRaceId | ||
| Description | 
                     Gets the race   | ||
| Return | osid.id.Id | the candidate  Id   | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRace | ||
| Description | 
                     Gets the race of the candidate.  | ||
| Return | osid.voting.Race | the race | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourceId | ||
| Description | 
                     Gets the resource   | ||
| Return | osid.id.Id | the resource  Id   | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getResource | ||
| Description | 
                     Gets the resource related to the candidate.  | ||
| Return | osid.resource.Resource | the resource | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCandidateRecord | ||
| Description | 
                     Gets the candidate record corresponding to the given 
                      | ||
| Parameters | osid.type.Type | candidateRecordType | the candidate record type | 
| Return | osid.voting.records.CandidateRecord | the candidate record | |
| Errors | NULL_ARGUMENT |  candidateRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED |  hasRecordType(candidateRecordType)  is  false   |                 ||
| Compliance | mandatory | This method must be implemented. | |