Interface IFeatureConstraint
-
- All Known Subinterfaces:
PreSetValidationService
- All Known Implementing Classes:
PreSetValidationServiceImpl
public interface IFeatureConstraintInterface that checks whether a given value complies with constraints defined by a given feature.- Since:
- 1.13
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringE_ROOT_OBJECTContext map key to retrieve the the root EObject (may be null).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.common.util.Diagnosticvalidate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value, java.util.Map<java.lang.Object,java.lang.Object> context)Validate a given value against constraints defined by theEDataTypeof theEStructuralFeature.
-
-
-
Field Detail
-
E_ROOT_OBJECT
static final java.lang.String E_ROOT_OBJECT
Context map key to retrieve the the root EObject (may be null).- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value, java.util.Map<java.lang.Object,java.lang.Object> context)Validate a given value against constraints defined by theEDataTypeof theEStructuralFeature.- Parameters:
eStructuralFeature- the feature that defines any constraintsvalue- the value to be validatedcontext- the validation context, may benull- Returns:
- a
Diagnosticdescribing any potential errors
-
-