org.eclipse.ocl.ecore.delegate
Class OCLValidationDelegateFactory
java.lang.Object
org.eclipse.ocl.ecore.delegate.AbstractOCLDelegateFactory
org.eclipse.ocl.ecore.delegate.OCLValidationDelegateFactory
- All Implemented Interfaces:
- ValidationDelegate.Factory
- Direct Known Subclasses:
- OCLValidationDelegateFactory.Global
public class OCLValidationDelegateFactory
- extends AbstractOCLDelegateFactory
- implements ValidationDelegate.Factory
Factory for OCL derived-classifier validation delegates.
- Since:
- 3.0
Nested Class Summary |
static class |
OCLValidationDelegateFactory.Global
The Global variant of the Factory delegates to a local ResourceSet factory if one
can be located at the EOperation.Internal.InvocationDelegate.Factory.Registry
by the DelegateResourceSetAdapter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCLValidationDelegateFactory
public OCLValidationDelegateFactory()
OCLValidationDelegateFactory
public OCLValidationDelegateFactory(OCLDelegateDomain delegateDomain)
createValidationDelegate
public ValidationDelegate createValidationDelegate(EClassifier classifier)
- Specified by:
createValidationDelegate
in interface ValidationDelegate.Factory
getValidationDelegate
protected ValidationDelegate getValidationDelegate(EClassifier eClassifier)
validate
public boolean validate(EClass eClass,
EObject eObject,
java.util.Map<java.lang.Object,java.lang.Object> context,
EOperation invariant,
java.lang.String expression)