public class OCLQueryDelegateFactory 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 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.
|
Constructor and Description |
---|
OCLQueryDelegateFactory()
Deprecated.
Specify explicit delegateURI
|
OCLQueryDelegateFactory(OCLDelegateDomain delegateDomain)
Deprecated.
Use String argument to avoid leak hazards
|
OCLQueryDelegateFactory(String delegateURI)
Construct a factory for a known delegate domain.
|
Modifier and Type | Method and Description |
---|---|
QueryDelegate |
createQueryDelegate(EClassifier context,
Map<String,EClassifier> parameters,
String expression) |
getURI
@Deprecated public OCLQueryDelegateFactory()
public OCLQueryDelegateFactory(String delegateURI)
delegateURI
- the delegate domain.@Deprecated public OCLQueryDelegateFactory(OCLDelegateDomain delegateDomain)
delegateDomain
- the delegate domain.Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.