OSID Logo
OSID Specifications
transport package
Version 3.1.0
Interfaceosid.transport.EndpointQuery
Implementsosid.OsidCatalogQuery
Used Byosid.transport.EndpointQuery
osid.transport.EndpointQuerySession
osid.transport.EndpointSearchSession
Description

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

MethodmatchResourceId
Description

Sets the resource Id for this query.

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

Clears the resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsResourceQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsResourceQuery() is false
Complianceoptional This method must be implemented if supportsResourceQuery() is true.
MethodmatchAnyResource
Description

Matches endpoints with any resource.

Parametersbooleanmatch true to match endpoints with any resource, false to match endpoints with no resources
Compliancemandatory This method must be implemented.
MethodclearResourceTerms
Description

Clears the resource terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorEndpointId
Description

Sets the endpoint Id for this query to match endpoints that have the specified endpoint as an ancestor.

Parametersosid.id.Idendpointid a endpoint Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT endpointId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorEndpointIdTerms
Description

Clears the ancestor endpoint Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorEndpointQuery
Description

Tests if a EndpointQuery is available.

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

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

Returnosid.transport.EndpointQuery the endpoint query
ErrorsUNIMPLEMENTED supportsAncestorEndpointQuery() is false
Complianceoptional This method must be implemented if supportsAncestorEndpointQuery() is true.
MethodmatchAnyAncestorEndpoint
Description

Matches endpoints with any ancestor.

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

Clears the ancestor endpoint terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantEndpointId
Description

Sets the endpoint Id for this query to match endpoints that have the specified endpoint as a descendant.

Parametersosid.id.Idendpointid a endpoint Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT endpointId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantEndpointIdTerms
Description

Clears the descendant endpoint Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantEndpointQuery
Description

Tests if a EndpointQuery is available.

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

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

Returnosid.transport.EndpointQuery the endpoint query
ErrorsUNIMPLEMENTED supportsDescendantEndpointQuery() is false
Complianceoptional This method must be implemented if supportsDescendantEndpointQuery() is true.
MethodmatchAnyDescendantEndpoint
Description

Matches endpoints with any descendant.

Parametersbooleanmatch true to match endpoints with any descendant, false to match leaf endpoints
Compliancemandatory This method must be implemented.
MethodclearDescendantEndpointTerms
Description

Clears the descendant endpoint terms.

Compliancemandatory This method must be implemented.
MethodgetEndpointQueryRecord
Description

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

Parametersosid.type.TypeendpointRecordType a endpoint record type
Returnosid.transport.records.EndpointQueryRecord the endpoint query record
ErrorsNULL_ARGUMENT endpointRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(endpointRecordType) is false
Compliancemandatory This method must be implemented.