IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.query
Interface IQueryHelper


public interface IQueryHelper

Utility classes to ease the generation of queries over EMF models


Method Summary
 Set executeQuery(org.eclipse.emf.ecore.EObject queryRoot, EObjectCondition condition, org.eclipse.core.runtime.IProgressMonitor monitor)
          Executes a query using queryRoot as the root of the subtree where to perform the search.
 

Method Detail

executeQuery

public Set executeQuery(org.eclipse.emf.ecore.EObject queryRoot,
                        EObjectCondition condition,
                        org.eclipse.core.runtime.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 recusively 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

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.