org.eclipse.ocl.examples.pivot.delegate
Class OCLValidationDelegateFactory
java.lang.Object
org.eclipse.ocl.examples.pivot.delegate.AbstractOCLDelegateFactory
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCLValidationDelegateFactory
public OCLValidationDelegateFactory(@NonNull
java.lang.String delegateURI)
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.