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)
PreSetValidationServiceEStructuralFeature.validate in interface PreSetValidationServiceeStructuralFeature - 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)
IFeatureConstraintEDataType
of the EStructuralFeature.validate in interface IFeatureConstrainteStructuralFeature - the feature that defines any constraintsvalue - the value to be validatedcontext - the validation context, may be nullDiagnostic describing any potential errorspublic org.eclipse.emf.common.util.Diagnostic validateLoose(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Object value)
EStructuralFeature.validateLoose in interface PreSetValidationServiceeStructuralFeature - 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)
PreSetValidationServiceIFeatureConstraint.addConstraintValidator in interface PreSetValidationServiceelement - ENamedElement to add a validation constraint forconstraint - the behavioral validation constraintprotected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext - The BundleContextprotected void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext - The BundleContextCopyright © 2018. All rights reserved.