public class OCLQueryHandler extends Object implements IQueryHandler
query handler
that evaluates OCL query expressions.Modifier and Type | Class and Description |
---|---|
static class |
OCLQueryHandler.Factory
Creates
OCLQueryHandler instances. |
Modifier and Type | Field and Description |
---|---|
static String |
LANGUAGE_NAME |
static String |
LAZY_EXTENTS_PARAMETER |
Constructor and Description |
---|
OCLQueryHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEnvironmentVariable(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment,
org.eclipse.ocl.expressions.Variable<EClassifier,?> variable) |
protected boolean |
addResult(Object result,
IQueryContext context,
CDOView view) |
protected CDOExtentMap |
createExtentMap(CDOView view,
CDOChangeSetData changeSetData,
IQueryContext context) |
protected org.eclipse.ocl.expressions.OCLExpression<EClassifier> |
createInitExpression(org.eclipse.ocl.types.OCLStandardLibrary<EClassifier> stdLib,
CDOPackageRegistry packageRegistry,
Object value) |
protected boolean |
createsLazyExtents() |
protected Object |
evaluate(org.eclipse.ocl.Query<EClassifier,EClass,EObject> query,
EObject object) |
void |
executeQuery(CDOQueryInfo info,
IQueryContext context)
Executes the
query represented by the specified query info by
passing the query results to the query execution engine represented by the
specified execution context . |
protected EClassifier |
getArbitraryContextClassifier(CDOPackageRegistry packageRegistry) |
protected CDORevision |
getRevision(EObject object,
CDOView view) |
protected void |
initEnvironment(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment,
CDOPackageRegistry packageRegistry,
Map<String,Object> parameters) |
static void |
prepareContainer(IManagedContainer container) |
public static final String LANGUAGE_NAME
public static final String LAZY_EXTENTS_PARAMETER
public void executeQuery(CDOQueryInfo info, IQueryContext context)
IQueryHandler
query
represented by the specified query info
by
passing
the query results to the query execution engine represented by the
specified execution context
.executeQuery
in interface IQueryHandler
protected boolean addResult(Object result, IQueryContext context, CDOView view)
protected CDORevision getRevision(EObject object, CDOView view)
protected Object evaluate(org.eclipse.ocl.Query<EClassifier,EClass,EObject> query, EObject object)
protected CDOExtentMap createExtentMap(CDOView view, CDOChangeSetData changeSetData, IQueryContext context)
protected boolean createsLazyExtents()
protected EClassifier getArbitraryContextClassifier(CDOPackageRegistry packageRegistry)
protected void initEnvironment(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment, CDOPackageRegistry packageRegistry, Map<String,Object> parameters)
protected org.eclipse.ocl.expressions.OCLExpression<EClassifier> createInitExpression(org.eclipse.ocl.types.OCLStandardLibrary<EClassifier> stdLib, CDOPackageRegistry packageRegistry, Object value)
protected void addEnvironmentVariable(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment, org.eclipse.ocl.expressions.Variable<EClassifier,?> variable)
public static void prepareContainer(IManagedContainer container)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.