public class PreSetValidationServiceImpl extends Object implements PreSetValidationService
PreSetValidationService
.E_ROOT_OBJECT
Constructor and Description |
---|
PreSetValidationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.
|
void |
addConstraintValidator(org.eclipse.emf.ecore.ENamedElement element,
IFeatureConstraint constraint)
Add a custom
IFeatureConstraint . |
protected void |
deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.
|
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 |
validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Object value,
Map<Object,Object> context)
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 . |
public org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Object value)
PreSetValidationService
EStructuralFeature
.validate
in interface PreSetValidationService
eStructuralFeature
- the feature that defines any constraintsvalue
- the value to be validatedDiagnostic
describing any potential errorspublic org.eclipse.emf.common.util.Diagnostic validate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Object value, Map<Object,Object> context)
IFeatureConstraint
EDataType
of the EStructuralFeature
.validate
in interface IFeatureConstraint
eStructuralFeature
- the feature that defines any constraintsvalue
- the value to be validatedcontext
- the validation context, may be null
Diagnostic
describing any potential errorspublic org.eclipse.emf.common.util.Diagnostic validateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Object value)
EStructuralFeature
.validateLoose
in interface PreSetValidationService
eStructuralFeature
- the feature that defines any constraintsvalue
- the value to be validatedDiagnostic
describing any potential errorsPreSetValidationService.validateLoose(org.eclipse.emf.ecore.EStructuralFeature,
java.lang.Object)
public void addConstraintValidator(org.eclipse.emf.ecore.ENamedElement element, IFeatureConstraint constraint)
PreSetValidationService
IFeatureConstraint
.addConstraintValidator
in interface PreSetValidationService
element
- ENamedElement
to add a validation constraint forconstraint
- the behavioral validation constraintprotected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
Copyright © 2019. All rights reserved.