org.eclipse.ocl.examples.pivot.delegate
Class OCLValidationDelegateFactory

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.delegate.AbstractOCLDelegateFactory
      extended by org.eclipse.ocl.examples.pivot.delegate.OCLValidationDelegateFactory
All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator.ValidationDelegate, ValidationDelegate, ValidationDelegate.Factory, ValidationDelegateExtension
Direct Known Subclasses:
OCLValidationDelegateFactory.Global

public class OCLValidationDelegateFactory
extends AbstractOCLDelegateFactory
implements ValidationDelegate.Factory, ValidationDelegate

Factory for OCL derived-classifier validation delegates.


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.examples.pivot.delegate.ValidationDelegate.Factory
ValidationDelegate.Factory.Descriptor, ValidationDelegate.Factory.Registry
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.delegate.ValidationDelegate
ValidationDelegate.Factory
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.delegate.AbstractOCLDelegateFactory
delegateURI
 
Constructor Summary
OCLValidationDelegateFactory(java.lang.String delegateURI)
           
 
Method Summary
 ValidationDelegate createValidationDelegate(org.eclipse.emf.ecore.EClassifier classifier)
           
protected  ValidationDelegate getValidationDelegate(org.eclipse.emf.ecore.EClassifier eClassifier)
           
 boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, org.eclipse.emf.ecore.EOperation invariant, java.lang.String expression, int severity, java.lang.String source, int code)
          Evaluates the given invariant expression against the object in the given context.
 boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, java.lang.String expression, int severity, java.lang.String source, int code)
          Evaluates the given constraint expression against the object in the given context.
 boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, java.util.Map<java.lang.Object,java.lang.Object> context, org.eclipse.emf.ecore.EOperation invariant, java.lang.String expression)
           
 boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, java.lang.String expression)
           
 boolean validate(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, java.lang.String expression, int severity, java.lang.String source, int code)
          Evaluates the given constraint expression against the value in the given context.
 boolean validate(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object value, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.String constraint, java.lang.String expression)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.delegate.AbstractOCLDelegateFactory
getDelegateDomain, getURI, loadDelegateDomain
 
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.examples.pivot.delegate.ValidationDelegate.Factory
getURI
 

Constructor Detail

OCLValidationDelegateFactory

public OCLValidationDelegateFactory(@NonNull
                                    java.lang.String delegateURI)
Method Detail

createValidationDelegate

@Nullable
public ValidationDelegate createValidationDelegate(@NonNull
                                                            org.eclipse.emf.ecore.EClassifier classifier)
Specified by:
createValidationDelegate in interface ValidationDelegate.Factory

getValidationDelegate

@Nullable
protected ValidationDelegate getValidationDelegate(@NonNull
                                                            org.eclipse.emf.ecore.EClassifier eClassifier)

validate

public boolean validate(org.eclipse.emf.ecore.EClass eClass,
                        org.eclipse.emf.ecore.EObject eObject,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        org.eclipse.emf.ecore.EOperation invariant,
                        java.lang.String expression)
Specified by:
validate in interface org.eclipse.emf.ecore.EValidator.ValidationDelegate

validate

public boolean validate(org.eclipse.emf.ecore.EClass eClass,
                        org.eclipse.emf.ecore.EObject eObject,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        java.lang.String constraint,
                        java.lang.String expression)
Specified by:
validate in interface org.eclipse.emf.ecore.EValidator.ValidationDelegate

validate

public boolean validate(org.eclipse.emf.ecore.EDataType eDataType,
                        java.lang.Object value,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        java.lang.String constraint,
                        java.lang.String expression)
Specified by:
validate in interface org.eclipse.emf.ecore.EValidator.ValidationDelegate

validate

public boolean validate(@NonNull
                        org.eclipse.emf.ecore.EClass eClass,
                        @NonNull
                        org.eclipse.emf.ecore.EObject eObject,
                        @Nullable
                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        @NonNull
                        org.eclipse.emf.ecore.EOperation invariant,
                        java.lang.String expression,
                        int severity,
                        java.lang.String source,
                        int code)
Description copied from interface: ValidationDelegateExtension
Evaluates the given invariant expression against the object in the given context.

Specified by:
validate in interface ValidationDelegateExtension
Returns:
the result of the expression evaluation.

validate

public boolean validate(@NonNull
                        org.eclipse.emf.ecore.EClass eClass,
                        @NonNull
                        org.eclipse.emf.ecore.EObject eObject,
                        @Nullable
                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        @NonNull
                        java.lang.String constraint,
                        java.lang.String expression,
                        int severity,
                        java.lang.String source,
                        int code)
Description copied from interface: ValidationDelegateExtension
Evaluates the given constraint expression against the object in the given context.

Specified by:
validate in interface ValidationDelegateExtension
Returns:
the result of the expression evaluation.

validate

public boolean validate(@NonNull
                        org.eclipse.emf.ecore.EDataType eDataType,
                        @NonNull
                        java.lang.Object value,
                        @Nullable
                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                        java.util.Map<java.lang.Object,java.lang.Object> context,
                        @NonNull
                        java.lang.String constraint,
                        java.lang.String expression,
                        int severity,
                        java.lang.String source,
                        int code)
Description copied from interface: ValidationDelegateExtension
Evaluates the given constraint expression against the value in the given context.

Specified by:
validate in interface ValidationDelegateExtension
Returns:
the result of the expression evaluation.