OSID Logo
OSID Specifications
topology package
Version 3.0.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.IdedgeIdan edge Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTedgeId is null
CompliancemandatoryThis method must be implemented.
MethodclearEdgeIdTerms
Description

Clears the edge Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEdgeQuery
Description

Tests if a EdgeQuery is available.

Returnbooleantrue if an edge query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEdgeQuery
Description

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

Returnosid.topology.EdgeQuerythe edge query
ErrorsUNIMPLEMENTEDsupportsEdgeQuery() is false
ComplianceoptionalThis method must be implemented if supportsEdgeQuery() is true .
MethodclearEdgeTerms
Description

Clears the edge terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGraphId
Description

Sets the graph Id for this query.

Parametersosid.id.IdgraphIdthe graph Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTgraphId is null
CompliancemandatoryThis method must be implemented.
MethodclearGraphIdTerms
Description

Clears the graph Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGraphQuery
Description

Tests if a GraphQuery is available.

Returnbooleantrue if a graph query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGraphQuery
Description

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

Returnosid.topology.GraphQuerythe graph query
ErrorsUNIMPLEMENTEDsupportsGraphQuery() is false
ComplianceoptionalThis method must be implemented if supportsGraphQuery() is true .
MethodclearGraphTerms
Description

Clears the graph terms.

CompliancemandatoryThis 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.TypenodeRecordTypea node record type
Returnosid.topology.records.NodeQueryRecordthe node query record
ErrorsNULL_ARGUMENTnodeRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(nodeRecordType) is false
CompliancemandatoryThis method must be implemented.