OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.NodeQuery
Implementsosid.OsidObjectQuery
Used Byosid.topology.EdgeQuery
osid.topology.GraphQuery
osid.topology.NodeQuerySession
osid.topology.NodeSearchSession
osid.topology.NodeSmartGraphSession
osid.topology.path.PathQuery
Description

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

MethodmatchEdgeId
Description

Sets the edge Id for this query to match nodes that have a related edge.

Parametersosid.id.IdedgeId an edge Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT edgeId is null
Compliancemandatory This method must be implemented.
MethodclearEdgeIdTerms
Description

Clears the edge Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsEdgeQuery
Description

Tests if a EdgeQuery is available.

Returnboolean true if an edge query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEdgeQuery
Description

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

Returnosid.topology.EdgeQuery the edge query
ErrorsUNIMPLEMENTED supportsEdgeQuery() is false
Complianceoptional This method must be implemented if supportsEdgeQuery() is true.
MethodclearEdgeTerms
Description

Clears the edge terms.

Compliancemandatory This method must be implemented.
MethodmatchGraphId
Description

Sets the graph Id for this query.

Parametersosid.id.IdgraphId the graph Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT graphId is null
Compliancemandatory This method must be implemented.
MethodclearGraphIdTerms
Description

Clears the graph Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsGraphQuery
Description

Tests if a GraphQuery is available.

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

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

Returnosid.topology.GraphQuery the graph query
ErrorsUNIMPLEMENTED supportsGraphQuery() is false
Complianceoptional This method must be implemented if supportsGraphQuery() is true.
MethodclearGraphTerms
Description

Clears the graph terms.

Compliancemandatory This method must be implemented.
MethodgetNodeQueryRecord
Description

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

Parametersosid.type.TypenodeRecordType a node record type
Returnosid.topology.records.NodeQueryRecord the node query record
ErrorsNULL_ARGUMENT nodeRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(nodeRecordType) is false
Compliancemandatory This method must be implemented.