| Interface | osid.voting.PollsQuery | ||
|---|---|---|---|
| Implements | osid.OsidCatalogQuery | ||
| Description | 
                 This is the query for searching polls. Each method 
                specifies an   | ||
| Method | matchCandidateId | ||
| Description | 
                     Sets the candidate   | ||
| Parameters | osid.id.Id | candidateId | a candidate  Id   | 
boolean | match |  true  for a positive match,  false  for a 
negative match  | |
| Errors | NULL_ARGUMENT |  candidateId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearCandidateIdTerms | ||
| Description | 
                     Clears the candidate   | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | supportsCandidateQuery | ||
| Description | 
                     Tests if a   | ||
| Return | boolean |  true  if a candidate query is available,  false  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCandidateQuery | ||
| Description | 
                     Gets the query for a candidate. Multiple retrievals 
                    produce a nested   | ||
| Return | osid.voting.CandidateQuery | the candidate query | |
| Errors | UNIMPLEMENTED |  supportsCandidateQuery()  is  false   |                 |
| Compliance | optional | This method must be implemented if  supportsCandidateQuery()  
is  true.   | |
| Method | matchAnyCandidate | ||
| Description | 
                     Matches polls with any candidate.  | ||
| Parameters | boolean | match |  true  to match polls with any candidate,  false  
to match polls with no candidates  | 
| Compliance | mandatory | This method must be implemented. | |
| Method | clearCandidateTerms | ||
| Description | 
                     Clears the candidate terms.  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | matchAncestorPollsId | ||
| Description | 
                     Sets the polls   | ||
| Parameters | osid.id.Id | pollsid | a polls  Id   | 
boolean | match |  true  for a positive match,  false  for a 
negative match  | |
| Errors | NULL_ARGUMENT |  pollsId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearAncestorPollsIdTerms | ||
| Description | 
                     Clears the ancestor polls   | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | supportsAncestorPollsQuery | ||
| Description | 
                     Tests if a   | ||
| Return | boolean |  true  if a polls query is available,  false  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAncestorPollsQuery | ||
| Description | 
                     Gets the query for a polls. Multiple retrievals produce 
                    a nested   | ||
| Return | osid.voting.PollsQuery | the polls query | |
| Errors | UNIMPLEMENTED |  supportsAncestorPollsQuery()  is  false   |                 |
| Compliance | optional | This method must be implemented if  supportsAncestorPollsQuery() 
 is  true.   | |
| Method | matchAnyAncestorPolls | ||
| Description | 
                     Matches polls with any ancestor.  | ||
| Parameters | boolean | match |  true  to match polls with any ancestor,  false  
to match root polls  | 
| Compliance | mandatory | This method must be implemented. | |
| Method | clearAncestorPollsTerms | ||
| Description | 
                     Clears the ancestor polls terms.  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | matchDescendantPollsId | ||
| Description | 
                     Sets the polls   | ||
| Parameters | osid.id.Id | pollsid | a polls  Id   | 
boolean | match |  true  for a positive match,  false  for a 
negative match  | |
| Errors | NULL_ARGUMENT |  pollsId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearDescendantPollsIdTerms | ||
| Description | 
                     Clears the descendant polls   | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | supportsDescendantPollsQuery | ||
| Description | 
                     Tests if a   | ||
| Return | boolean |  true  if a polls query is available,  false  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDescendantPollsQuery | ||
| Description | 
                     Gets the query for a polls. Multiple retrievals produce 
                    a nested   | ||
| Return | osid.voting.PollsQuery | the polls query | |
| Errors | UNIMPLEMENTED |  supportsDescendantPollsQuery()  is  false   |                 |
| Compliance | optional | This method must be implemented if  supportsDescendantPollsQuery() 
 is  true.   | |
| Method | matchAnyDescendantPolls | ||
| Description | 
                     Matches polls with any descendant.  | ||
| Parameters | boolean | match |  true  to match polls with any descendant,  false 
 to match leaf polls  | 
| Compliance | mandatory | This method must be implemented. | |
| Method | clearDescendantPollsTerms | ||
| Description | 
                     Clears the descendant polls terms.  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsQueryRecord | ||
| Description | 
                     Gets the polls query record corresponding to the given 
                      | ||
| Parameters | osid.type.Type | pollsRecordType | a polls record type | 
| Return | osid.voting.records.PollsQueryRecord | the polls query record | |
| Errors | NULL_ARGUMENT |  pollsRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED |  hasRecordType(pollsRecordType)  is  false   |                 ||
| Compliance | mandatory | This method must be implemented. | |