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.
|
delegateDomain, delegateURI
Constructor and Description |
---|
OCLQueryDelegateFactory()
Deprecated.
Specify explicit delegateURI
|
OCLQueryDelegateFactory(OCLDelegateDomain delegateDomain)
Deprecated.
Use String argument to avoid leak hazards
|
OCLQueryDelegateFactory(java.lang.String delegateURI)
Construct a factory for a known delegate domain.
|
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
@Deprecated public OCLQueryDelegateFactory()
public OCLQueryDelegateFactory(java.lang.String delegateURI)
delegateURI
- the delegate domain.@Deprecated public OCLQueryDelegateFactory(OCLDelegateDomain delegateDomain)
delegateDomain
- the delegate domain.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