OSID Logo
OSID Specifications
resource demographic package
Version 3.1.0
Interfaceosid.resource.demographic.DemographicQuery
Implementsosid.OsidRuleQuery
Used Byosid.resource.demographic.DemographicEnablerQuery
osid.resource.demographic.DemographicQuery
osid.resource.demographic.DemographicQuerySession
osid.resource.demographic.DemographicSearchSession
osid.resource.demographic.DemographicSmartBinSession
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.IddemographicId the demographic Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT demographicId is null
Compliancemandatory This method must be implemented.
MethodclearIncludedDemographicIdTerms
Description

Clears the demographic Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsIncludedDemographicQuery
Description

Tests if a DemographicQuery is available.

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

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

Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearIncludedDemographicTerms
Description

Clears the demographic query terms.

Compliancemandatory This method must be implemented.
MethodmatchIncludedIntersectingDemographicId
Description

Matches demographics including the given intersecting demographic.

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

Clears the intersecting demographic Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsIncludedIntersectingDemographicQuery
Description

Tests if a DemographicQuery is available.

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

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

Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearIncludedIntersectingDemographicTerms
Description

Clears the intersecting demographic query terms.

Compliancemandatory This method must be implemented.
MethodmatchIncludedExclusiveDemographicId
Description

Matches demographics including the given exclusive demographic.

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

Clears the exclusive demographic Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsIncludedExclusiveDemographicQuery
Description

Tests if a DemographicQuery is available.

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

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

Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsUNIMPLEMENTED supportsIncludedDemographicQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearIncludedExclusiveDemographicTerms
Description

Clears the demographic query terms.

Compliancemandatory This method must be implemented.
MethodmatchExcludedDemographicId
Description

Matches demographics excluding the given a demographic.

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

Clears the excluded demographic Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetExcludedDemographicQuery
Description

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

Returnosid.resource.demographic.DemographicQuery the demographic query
ErrorsUNIMPLEMENTED supportsExcludedDemographicQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearExcludedDemographicTerms
Description

Clears the excluded demographic query terms.

Compliancemandatory This method must be implemented.
MethodmatchIncludedResourceId
Description

Matches demographics including the given resource.

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

Clears the included resource Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsIncludedResourceQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsIncludedResourceQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearIncludedResourceTerms
Description

Clears the included resource query terms.

Compliancemandatory This method must be implemented.
MethodmatchExcludedResourceId
Description

Matches demographics excluding the given resource.

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

Clears the excluded resource Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetExcludedResourceQuery
Description

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsExcludedResourceQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearExcludedResourceTerms
Description

Clears the excluded resource query terms.

Compliancemandatory This method must be implemented.
MethodmatchResultingResourceId
Description

Matches demographics resulting in the given resource.

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

Clears the resulting resource Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetResultingResourceQuery
Description

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsResultingResourceQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearResultingResourceTerms
Description

Clears the resource query terms.

Compliancemandatory This method must be implemented.
MethodmatchBinId
Description

Matches mapped to the bin.

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

Clears the bin Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsBinQuery
Description

Tests if a BinQuery is available.

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

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

Returnosid.resource.BinQuery the bin query
ErrorsUNIMPLEMENTED supportsBinQuery() is false
Complianceoptional This method must be implemented if supportsBinQuery() is true.
MethodclearBinTerms
Description

Clears the bin query terms.

Compliancemandatory This 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.TypedemographicRecordType a demographic record type
Returnosid.resource.demographic.records.DemographicQueryRecord the demographic query record
ErrorsNULL_ARGUMENT demographicRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(demographicRecordType) is false
Compliancemandatory This method must be implemented.