public class OCLQueryDelegateFactory extends AbstractOCLDelegateFactory implements org.eclipse.emf.ecore.util.QueryDelegate.Factory
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 textand (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 |
OCLQueryDelegateFactory.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.
|
delegateURI
Constructor and Description |
---|
OCLQueryDelegateFactory(java.lang.String delegateURI) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.util.QueryDelegate |
createQueryDelegate(org.eclipse.emf.ecore.EClassifier context,
java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> parameters,
java.lang.String expression) |
getDelegateDomain, getURI, loadDelegateDomain
public OCLQueryDelegateFactory(@NonNull java.lang.String delegateURI)
public org.eclipse.emf.ecore.util.QueryDelegate createQueryDelegate(org.eclipse.emf.ecore.EClassifier context, java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> parameters, java.lang.String expression)
createQueryDelegate
in interface org.eclipse.emf.ecore.util.QueryDelegate.Factory