Class PreSetValidationServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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, java.lang.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, java.lang.Object value, java.util.Map<java.lang.Object,​java.lang.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, java.lang.Object value)
      Validate a given value against loose constraints defined by the EDataType of the EStructuralFeature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreSetValidationServiceImpl

        public PreSetValidationServiceImpl()
    • Method Detail

      • validate

        public org.eclipse.emf.common.util.Diagnostic validate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                               java.lang.Object value)
        Description copied from interface: PreSetValidationService
        Validate a given value against constraints defined by the EDataType of the EStructuralFeature.
        Specified by:
        validate in interface PreSetValidationService
        Parameters:
        eStructuralFeature - the feature that defines any constraints
        value - the value to be validated
        Returns:
        a Diagnostic describing any potential errors
      • validate

        public 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)
        Description copied from interface: IFeatureConstraint
        Validate a given value against constraints defined by the EDataType of the EStructuralFeature.
        Specified by:
        validate in interface IFeatureConstraint
        Parameters:
        eStructuralFeature - the feature that defines any constraints
        value - the value to be validated
        context - the validation context, may be null
        Returns:
        a Diagnostic describing any potential errors
      • activate

        protected void activate​(org.osgi.framework.BundleContext bundleContext)
        Called by the framework when the component gets activated.
        Parameters:
        bundleContext - The BundleContext
      • deactivate

        protected void deactivate​(org.osgi.framework.BundleContext bundleContext)
        Called by the framework when the component gets deactivated.
        Parameters:
        bundleContext - The BundleContext