OSID Logo
OSID Specifications
relationship package
Version 3.1.0
Interfaceosid.relationship.FamilyQuery
Implementsosid.OsidCatalogQuery
Used Byosid.relationship.FamilyQuery
osid.relationship.FamilyQuerySession
osid.relationship.FamilySearchSession
osid.relationship.RelationshipQuery
osid.relationship.rules.RelationshipEnablerQuery
Description

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

MethodmatchRelationshipId
Description

Matches a relationship Id.

Parametersosid.id.IdrelationshipId a relationship Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT relationshipId is null
Compliancemandatory This method must be implemented.
MethodclearRelationshipIdTerms
Description

Clears the relationship Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRelationshipQuery
Description

Tests if a relationship query is available.

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

Gets the query interface for a relationship.

Returnosid.relationship.RelationshipQuery the relationship query
ErrorsUNIMPLEMENTED supportsRelationshipQuery() is false
Complianceoptional This method must be implemented if supportsRelationshipQuery() is true.
MethodmatchAnyRelationship
Description

Matches families with any relationship.

Parametersbooleanmatch true to match families with any relationship, false to match families with no relationship
Compliancemandatory This method must be implemented.
MethodclearRelationshipTerms
Description

Clears the relationship terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorFamilyId
Description

Sets the family Id for this query to match families that have the specified family as an ancestor.

Parametersosid.id.IdfamilyId a family Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT familyId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorFamilyIdTerms
Description

Clears the ancestor family Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorFamilyQuery
Description

Tests if a FamilyQuery is available.

Returnboolean true if a family query interface is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorFamilyQuery
Description

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

Returnosid.relationship.FamilyQuery the family query
ErrorsUNIMPLEMENTED supportsAncestorFamilyQuery() is false
Complianceoptional This method must be implemented if supportsAncestorFamilyQuery() is true.
MethodmatchAnyAncestorFamily
Description

Matches families with any ancestor.

Parametersbooleanmatch true to match families with any ancestor, false to match root families
Compliancemandatory This method must be implemented.
MethodclearAncestorFamilyTerms
Description

Clears the ancestor family terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantFamilyId
Description

Sets the family Id for this query to match families that have the specified family as a descednant.

Parametersosid.id.IdfamilyId a family Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT familyId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantFamilyIdTerms
Description

Clears the descendant family Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantFamilyQuery
Description

Tests if a FamilyQuery is available.

Returnboolean true if a family query interface is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantFamilyQuery
Description

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

Returnosid.relationship.FamilyQuery the family query
ErrorsUNIMPLEMENTED supportsDescendantFamilyQuery() is false
Complianceoptional This method must be implemented if supportsDescendantFamilyQuery() is true.
MethodmatchAnyDescendantFamily
Description

Matches families with any decendant.

Parametersbooleanmatch true to match families with any decendants, false to match leaf families
Compliancemandatory This method must be implemented.
MethodclearDescendantFamilyTerms
Description

Clears the descendant family terms.

Compliancemandatory This method must be implemented.
MethodgetFamilyQueryRecord
Description

Gets the family query record corresponding to the given Family record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypefamilyRecordType a family record type
Returnosid.relationship.records.FamilyQueryRecord the family query record
ErrorsNULL_ARGUMENT familyRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(familyRecordType) is false
Compliancemandatory This method must be implemented.