public interface PreSetValidationService extends IFeatureConstraint
E_ROOT_OBJECT
Modifier and Type | Method and Description |
---|---|
void |
addConstraintValidator(org.eclipse.emf.ecore.ENamedElement element,
IFeatureConstraint constraint)
Add a custom
IFeatureConstraint . |
org.eclipse.emf.common.util.Diagnostic |
validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Object value)
Validate a given value against constraints defined by the EDataType
of the
EStructuralFeature . |
org.eclipse.emf.common.util.Diagnostic |
validateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Object value)
Validate a given value against loose constraints defined by the EDataType of the
EStructuralFeature . |
validate
org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Object value)
EStructuralFeature
.eStructuralFeature
- the feature that defines any constraintsvalue
- the value to be validatedDiagnostic
describing any potential errorsvoid addConstraintValidator(org.eclipse.emf.ecore.ENamedElement element, IFeatureConstraint constraint)
IFeatureConstraint
.element
- ENamedElement
to add a validation constraint forconstraint
- the behavioral validation constraintorg.eclipse.emf.common.util.Diagnostic validateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Object value)
EStructuralFeature
.eStructuralFeature
- the feature that defines any constraintsvalue
- the value to be validatedDiagnostic
describing any potential errorsCopyright © 2019. All rights reserved.