Interface ValidationProvider

    • Method Detail

      • setContext

        default void setContext​(ViewModelContext context)
        Initialize me in the view model context of the ValidationService to which I have been added. Note that I could be added to validation services in more than one context.
        Parameters:
        context - the context of the ValidationService to which I have been added
        Since:
        1.23
      • unsetContext

        default void unsetContext​(ViewModelContext context)
        Notify me that I have been removed from the ValidationService in the given context. Note that I may still be used in validation services in other contexts.
        Parameters:
        context - the context of the ValidationService from which I have been removed
        Since:
        1.23
      • validate

        default java.lang.Iterable<? extends org.eclipse.emf.common.util.Diagnostic> validate​(ViewModelContext context,
                                                                                              org.eclipse.emf.ecore.EObject object)
        Validate an object in a view model context.
        Parameters:
        context - the view model context in which validation is occurring
        object - the object to validate
        Returns:
        the results of validation of the object, or null if none
        Since:
        1.23