Class DelegateFactory
java.lang.Object
org.eclipse.epsilon.ecore.delegates.validation.DelegateFactory
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator.ValidationDelegate,EpsilonValidationDelegate.Factory
public class DelegateFactory
extends Object
implements EpsilonValidationDelegate.Factory, org.eclipse.emf.ecore.EValidator.ValidationDelegate
Delegates are created using the
EpsilonDelegatesAdapter that are cached in the EClassifier
adapters.- Since:
- 2.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.epsilon.ecore.delegates.validation.EpsilonValidationDelegate.Factory
EpsilonValidationDelegate.Factory.Descriptor, EpsilonValidationDelegate.Factory.RegistryNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionDelegateFactory(ValidationUri delegateUri, DelegateContext.ContextFactory.Registry domainRegistry, EpsilonValidationDelegate.Factory.Registry delegateRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncreateValidationDelegate(org.eclipse.emf.ecore.EClassifier classifier) booleanvalidate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, Map<Object, Object> context, String constraint, String expression) booleanvalidate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, Map<Object, Object> context, org.eclipse.emf.ecore.EOperation invariant, String expression) booleanvalidate(org.eclipse.emf.ecore.EDataType eDataType, Object value, Map<Object, Object> context, String constraint, String expression)
-
Constructor Details
-
DelegateFactory
public DelegateFactory() -
DelegateFactory
public DelegateFactory(ValidationUri delegateUri, DelegateContext.ContextFactory.Registry domainRegistry, EpsilonValidationDelegate.Factory.Registry delegateRegistry)
-
-
Method Details
-
validate
public boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, Map<Object, Object> context, org.eclipse.emf.ecore.EOperation invariant, String expression) - Specified by:
validatein interfaceorg.eclipse.emf.ecore.EValidator.ValidationDelegate
-
validate
public boolean validate(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, Map<Object, Object> context, String constraint, String expression) - Specified by:
validatein interfaceorg.eclipse.emf.ecore.EValidator.ValidationDelegate
-
validate
public boolean validate(org.eclipse.emf.ecore.EDataType eDataType, Object value, Map<Object, Object> context, String constraint, String expression) - Specified by:
validatein interfaceorg.eclipse.emf.ecore.EValidator.ValidationDelegate
-
createValidationDelegate
public EpsilonValidationDelegate createValidationDelegate(org.eclipse.emf.ecore.EClassifier classifier) - Specified by:
createValidationDelegatein interfaceEpsilonValidationDelegate.Factory
-