Interface PreSetValidationService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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, java.lang.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, java.lang.Object value)
      Validate a given value against loose constraints defined by the EDataType of the EStructuralFeature.
    • 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 the EStructuralFeature.
        Parameters:
        eStructuralFeature - the feature that defines any constraints
        value - the value to be validated
        Returns:
        a Diagnostic describing any potential errors
      • addConstraintValidator

        void addConstraintValidator​(org.eclipse.emf.ecore.ENamedElement element,
                                    IFeatureConstraint constraint)
        Add a custom IFeatureConstraint.
        Parameters:
        element - ENamedElement to add a validation constraint for
        constraint - 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 the EStructuralFeature.
        Parameters:
        eStructuralFeature - the feature that defines any constraints
        value - the value to be validated
        Returns:
        a Diagnostic describing any potential errors