Interface PreSetValidationService
-
- All Superinterfaces:
IFeatureConstraint
- All Known Implementing Classes:
PreSetValidationServiceImpl
public interface PreSetValidationService extends IFeatureConstraint
Pre-set validation service that checks whether a given value complies with constraints defined by a given feature.- Since:
- 1.13
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.common.validation.IFeatureConstraint
E_ROOT_OBJECT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConstraintValidator(org.eclipse.emf.ecore.ENamedElement element, IFeatureConstraint constraint)Add a customIFeatureConstraint.org.eclipse.emf.common.util.Diagnosticvalidate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value)Validate a given value against constraints defined by the EDataType of theEStructuralFeature.org.eclipse.emf.common.util.DiagnosticvalidateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value)Validate a given value against loose constraints defined by the EDataType of theEStructuralFeature.-
Methods inherited from interface org.eclipse.emfforms.spi.common.validation.IFeatureConstraint
validate
-
-
-
-
Method Detail
-
validate
org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value)Validate a given value against constraints defined by the EDataType of theEStructuralFeature.- Parameters:
eStructuralFeature- the feature that defines any constraintsvalue- the value to be validated- Returns:
- a
Diagnosticdescribing any potential errors
-
addConstraintValidator
void addConstraintValidator(org.eclipse.emf.ecore.ENamedElement element, IFeatureConstraint constraint)Add a customIFeatureConstraint.- Parameters:
element-ENamedElementto add a validation constraint forconstraint- the behavioral validation constraint
-
validateLoose
org.eclipse.emf.common.util.Diagnostic validateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, java.lang.Object value)Validate a given value against loose constraints defined by the EDataType of theEStructuralFeature.- Parameters:
eStructuralFeature- the feature that defines any constraintsvalue- the value to be validated- Returns:
- a
Diagnosticdescribing any potential errors
-
-