OSID Logo
OSID Specifications
resource demographic package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.demographic.DemographicQuery
Implementsosid.OsidRuleQuery
Description

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

MethodmatchIncludedDemographicId
Description

Matches demographics including the given demographic.

Parametersosid.id.IddemographicIdthe demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
CompliancemandatoryThis method must be implemented.
MethodclearIncludedDemographicIdTerms
Description

Clears the demographic Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIncludedDemographicQuery
Description

Tests if a DemographicQuery is available.

Returnboolean true if a demographic query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIncludedDemographicQuery
Description

Gets the query for a demographic. Multiple retrievals produce a nested OR term.

Returnosid.resource.demographic.DemographicQuerythe demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
ComplianceoptionalThis method must be implemented if supportsdIncludedDemographicQuery() is true.
MethodmatchAnyIncludedDemographic
Description

Matches demographics including any demographic.

Parametersbooleanmatch true for demographics that include any demographic, false to match demographics including no demographics
CompliancemandatoryThis method must be implemented.
MethodclearIncludedDemographicTerms
Description

Clears the demographic query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIncludedIntersectingDemographicId
Description

Matches demographics including the given intersecting demographic.

Parametersosid.id.IddemographicIdthe demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
CompliancemandatoryThis method must be implemented.
MethodclearIncludedIntersectingDemographicIdTerms
Description

Clears the intersecting demographic Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIncludedIntersectingDemographicQuery
Description

Tests if a DemographicQuery is available.

Returnboolean true if a demographic query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIncludedIntersectingDemographicQuery
Description

Gets the query for an intersecting demographic. Multiple retrievals produce a nested OR term.

Returnosid.resource.demographic.DemographicQuerythe demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
ComplianceoptionalThis method must be implemented if supportsdIncludedDemographicQuery() is true.
MethodmatchAnyIncludedIntersectingDemographic
Description

Matches demographics including any intersecting demographic.

Parametersbooleanmatch true for demographics that include any intersecting demographic, false to match demographics including no intersecting demographics
CompliancemandatoryThis method must be implemented.
MethodclearIncludedIntersectingDemographicTerms
Description

Clears the intersecting demographic query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIncludedExclusiveDemographicId
Description

Matches demographics including the given exclusive demographic.

Parametersosid.id.IddemographicIdthe demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
CompliancemandatoryThis method must be implemented.
MethodclearIncludedExclusiveDemographicIdTerms
Description

Clears the exclusive demographic Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIncludedExclusiveDemographicQuery
Description

Tests if a DemographicQuery is available.

Returnboolean true if a demographic query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIncludedExclusiveDemographicQuery
Description

Gets the query for an exclusive demographic. Multiple retrievals produce a nested OR term.

Returnosid.resource.demographic.DemographicQuerythe demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
ComplianceoptionalThis method must be implemented if supportsdIncludedDemographicQuery() is true.
MethodmatchAnyIncludedExclusiveDemographic
Description

Matches demographics including any exclusive demographic.

Parametersbooleanmatch true for demographics that include any exclusive demographic, false to match demographics including no exclusive demographics
CompliancemandatoryThis method must be implemented.
MethodclearIncludedExclusiveDemographicTerms
Description

Clears the demographic query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchExcludedDemographicId
Description

Matches demographics excluding the given a demographic.

Parametersosid.id.IddemographicIdthe demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
CompliancemandatoryThis method must be implemented.
MethodclearExcludedDemographicIdTerms
Description

Clears the excluded demographic Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsExcludedDemographicQuery
Description

Tests if a DemographicQuery is available to match demographics with an excluded demographic.

Returnboolean true if a demographic query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetExcludedDemographicQuery
Description

Gets the query for an excluded demographic. Multiple retrievals produce a nested OR term.

Returnosid.resource.demographic.DemographicQuerythe demographic query
ErrorsUNIMPLEMENTED supportsExcludedDemographicQuery() is false
ComplianceoptionalThis method must be implemented if supportsdExcludedDemographicQuery() is true.
MethodmatchAnyExcludedDemographic
Description

Matches demographics excluding any demographic.

Parametersbooleanmatch true for demographics with any excluded demographic, false to match demographics with no excluded demographics
CompliancemandatoryThis method must be implemented.
MethodclearExcludedDemographicTerms
Description

Clears the excluded demographic query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIncludedResourceId
Description

Matches demographics including the given resource.

Parametersosid.id.IdresourceIdthe resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearIncludedResourceIdTerms
Description

Clears the included resource Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIncludedResourceQuery
Description

Tests if a ResourceQuery is available.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIncludedResourceQuery
Description

Gets the query for a resource. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsIncludedResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsdIncludedResourceQuery() is true.
MethodmatchAnyIncludedResource
Description

Matches demographics including any resource.

Parametersbooleanmatch true for demographics that include any resource, false to match demographics including no resources
CompliancemandatoryThis method must be implemented.
MethodclearIncludedResourceTerms
Description

Clears the included resource query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchExcludedResourceId
Description

Matches demographics excluding the given resource.

Parametersosid.id.IdresourceIdthe resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearExcludedResourceIdTerms
Description

Clears the excluded resource Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsExcludedResourceQuery
Description

Tests if a ResourceQuery is available to match demographics with an excluded resource.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetExcludedResourceQuery
Description

Gets the query for an excluded resource. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsExcludedResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsdExcludedResourceQuery() is true.
MethodmatchAnyExcludedResource
Description

Matches demographics excluding any resource.

Parametersbooleanmatch true for demographics that exclude any resource, false to match demographics excluding no resources
CompliancemandatoryThis method must be implemented.
MethodclearExcludedResourceTerms
Description

Clears the excluded resource query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchResultingResourceId
Description

Matches demographics resulting in the given resource.

Parametersosid.id.IdresourceIdthe resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearResultingResourceIdTerms
Description

Clears the resulting resource Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsResultingResourceQuery
Description

Tests if a ResourceQuery is available to match demographics resulting in a resource.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResultingResourceQuery
Description

Gets the query for a resulting resource. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsResultingResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsdResultingResourceQuery() is true.
MethodmatchAnyResultingResource
Description

Matches demographics that have any resulting resource.

Parametersbooleanmatch true for demographics that have any resulting resource, false to match demographics with no resulting resources
CompliancemandatoryThis method must be implemented.
MethodclearResultingResourceTerms
Description

Clears the resource query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBinId
Description

Matches mapped to the bin.

Parametersosid.id.IdbinIdthe bin Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT binId is null
CompliancemandatoryThis method must be implemented.
MethodclearBinIdTerms
Description

Clears the bin Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBinQuery
Description

Tests if a BinQuery is available.

Returnboolean true if a bin query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBinQuery
Description

Gets the query for a bin. Multiple retrievals produce a nested OR term.

Returnosid.resource.BinQuerythe bin query
ErrorsUNIMPLEMENTED supportsBinQuery() is false
ComplianceoptionalThis method must be implemented if supportsBinQuery() is true.
MethodclearBinTerms
Description

Clears the bin query terms.

CompliancemandatoryThis method must be implemented.
MethodgetDemographicQueryRecord
Description

Gets the demographic query record corresponding to the given Demographic record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypedemographicRecordTypea demographic record type
Returnosid.resource.demographic.records.DemographicQueryRecordthe demographic query record
ErrorsNULL_ARGUMENT demographicRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(demographicRecordType) is false
CompliancemandatoryThis method must be implemented.