OSID Logo
OSID Specifications
osid package
Version 3.1.0
Interfaceosid.OsidRuleQuery
Implementsosid.OsidObjectQuery
osid.OsidOperableQuery
Implemented Byosid.assessment.authoring.SequenceRuleQuery
osid.ordering.PriceQuery
osid.authorization.FunctionQuery
osid.OsidEnablerQuery
osid.OsidConstrainerQuery
osid.OsidProcessorQuery
osid.resource.demographic.DemographicQuery
osid.checklist.mason.TodoProducerQuery
osid.rules.check.AgendaQuery
osid.rules.check.CheckQuery
osid.course.requisite.RequisiteQuery
osid.course.requisite.CourseRequirementQuery
osid.calendaring.RecurringEventQuery
osid.calendaring.SupersedingEventQuery
osid.calendaring.OffsetEventQuery
osid.configuration.ParameterQuery
osid.inquiry.InquiryQuery
osid.workflow.StepQuery
osid.rules.RuleQuery
osid.mapping.path.SpeedZoneQuery
osid.mapping.path.SignalQuery
osid.control.InputQuery
osid.control.TriggerQuery
osid.control.ActionQuery
Description

This is the query interface for searching rules. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchRuleId
Description

Match the Id of the rule.

Parametersosid.id.IdruleId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ruleId is null
Compliancemandatory This method must be implemented.
MethodclearRuleIdTerms
Description

Clears all rule Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuleQuery
Description

Tests if a RuleQuery for the rule is available.

Returnboolean true if a rule query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuleQuery
Description

Gets the query for the rule. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.rules.RuleQuery the rule query
ErrorsUNIMPLEMENTED supportsRuleQuery() is false
Complianceoptional This method must be implemented if supportsRuleQuery() is true.
MethodmatchAnyRule
Description

Match any associated rule.

Parametersbooleanmatch true to match any rule, false to match no rules
Compliancemandatory This method must be implemented.
MethodclearRuleTerms
Description

Clears all rule terms.

Compliancemandatory This method must be implemented.
MethodmatchConditionRecordType
Description

Matches a condition record type.

Parametersosid.type.TypeconditionRecordType a condition record Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT conditionRecordType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyConditionRecordType
Description

Matches rules with any condition record type.

Parametersbooleanmatch true to match rules with any condition record type, false to match rules with no condition record type
Compliancemandatory This method must be implemented.
MethodclearConditionRecordTypeTerms
Description

Clears the condition record Type query terms.

Compliancemandatory This method must be implemented.