UML Modeler

com.ibm.xtools.modeler.ui
Interface IQueryHelper


public interface IQueryHelper

Utility classes to ease the generation of queries over EMF models


Method Summary
 Set<EObject> executeQuery(EObject queryRoot, EObjectCondition condition, IProgressMonitor monitor)
          Executes a query using queryRoot as the root of the subtree where to perform the search.
 

Method Detail

executeQuery

Set<EObject> executeQuery(EObject queryRoot,
                          EObjectCondition condition,
                          IProgressMonitor monitor)
                          throws InterruptedException
Executes a query using queryRoot as the root of the subtree where to perform the search. Only EObject satisfying the condition specified in condition/code> are returned.

Parameters:
queryRoot - The root element to recursively apply the query to
condition - The condition object used to filter in EObject
monitor - The monitor to use to display progress and/or cancel
Returns:
The collection of EObject produced by executing the query
Throws:
InterruptedException - The query operation was interrupted
NullPointerException - One of the passed parameters was null

UML Modeler

© Copyright IBM Corp. 2009. All rights reserved.