org.eclipse.ocl.ecore.delegate
Class OCLValidationDelegateFactory

java.lang.Object
  extended by org.eclipse.ocl.ecore.delegate.AbstractOCLDelegateFactory
      extended by 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.
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.ecore.delegate.ValidationDelegate.Factory
ValidationDelegate.Factory.Descriptor, ValidationDelegate.Factory.Registry
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.ecore.delegate.AbstractOCLDelegateFactory
delegateDomain, delegateURI
 
Constructor Summary
OCLValidationDelegateFactory()
           
OCLValidationDelegateFactory(OCLDelegateDomain delegateDomain)
           
 
Method Summary
 ValidationDelegate createValidationDelegate(EClassifier classifier)
           
protected  ValidationDelegate getValidationDelegate(EClassifier eClassifier)
           
 boolean validate(EClass eClass, EObject eObject, java.util.Map<java.lang.Object,java.lang.Object> context, EOperation invariant, java.lang.String expression)
           
 
Methods inherited from class org.eclipse.ocl.ecore.delegate.AbstractOCLDelegateFactory
getDelegateDomain, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.ecore.delegate.ValidationDelegate.Factory
getURI
 

Constructor Detail

OCLValidationDelegateFactory

public OCLValidationDelegateFactory()

OCLValidationDelegateFactory

public OCLValidationDelegateFactory(OCLDelegateDomain delegateDomain)
Method Detail

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)

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.