public class OCLDebugQueryDelegateFactory extends AbstractOCLDelegateFactory
The factory may be obtained by:
QueryDelegate.Factory factory = QueryDelegate.Factory.Registry.INSTANCE
.getFactory(OCLDelegateDomain.OCL_DELEGATE_URI);
from which a query delegate may be created by:
QueryDelegate delegate = factory.createQueryDelegate(
classifier, // the context type
map-of-name-to-classifier, // the external variable names and types
string); // the OCL expression text
and (repeatedly) invoked by:
Object result = delegate.execute(
target, // the context instance
map-of-name-to-object); // the external variable bindings
| Modifier and Type | Class and Description |
|---|---|
static class |
OCLDebugQueryDelegateFactory.Global
The Global variant of the Factory delegates to a local ResourceSet factory if one
can be located at the QueryDelegate.Factory.Registry
by the DelegateResourceSetAdapter.
|
| Constructor and Description |
|---|
OCLDebugQueryDelegateFactory(String delegateURI) |
| Modifier and Type | Method and Description |
|---|---|
QueryDelegate |
createQueryDelegate(EClassifier context,
Map<String,EClassifier> parameters,
String expression) |
getURICopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.