org.eclipse.ocl.examples.pivot.delegate
Interface ValidationDelegateExtension

All Superinterfaces:
org.eclipse.emf.ecore.EValidator.ValidationDelegate
All Known Subinterfaces:
ValidationDelegate
All Known Implementing Classes:
OCLValidationDelegate, OCLValidationDelegateFactory, OCLValidationDelegateFactory.Global

public interface ValidationDelegateExtension
extends org.eclipse.emf.ecore.EValidator.ValidationDelegate

An extended interface allowing validators to generate custom diagnostics.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator.ValidationDelegate
org.eclipse.emf.ecore.EValidator.ValidationDelegate.Descriptor, org.eclipse.emf.ecore.EValidator.ValidationDelegate.Registry
 
Method Summary
 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.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.
 
Methods inherited from interface org.eclipse.emf.ecore.EValidator.ValidationDelegate
validate, validate, validate
 

Method Detail

validate

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)
Evaluates the given constraint expression against the object in the given context.

Returns:
the result of the expression evaluation.

validate

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)
Evaluates the given invariant expression against the object in the given context.

Returns:
the result of the expression evaluation.

validate

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)
Evaluates the given constraint expression against the value in the given context.

Returns:
the result of the expression evaluation.