Class ModelApiTasks


  • public final class ModelApiTasks
    extends Object
    A usefull set of factory methods for model API tasks creation.
    • Method Detail

      • createNamedTask

        public static <T,​M extends org.eclipse.emf.ecore.EObject> IModelApiTask<T,​M> createNamedTask​(String name,
                                                                                                                 IModelApiTask<T,​M> task)
        Creates a new model API task with the specified name.
        Parameters:
        name - the name of the task, cannot be null.
        task - the origin task, cannot be null.
        Returns:
        a newly created task with a specified name, never null.
      • createNamedTask

        public static <T,​M1 extends org.eclipse.emf.ecore.EObject,​M2 extends org.eclipse.emf.ecore.EObject> IModelApiTask2<T,​M1,​M2> createNamedTask​(String name,
                                                                                                                                                                            IModelApiTask2<T,​M1,​M2> task)
        Creates a new model API task with the specified name.
        Parameters:
        name - the name of the task, cannot be null.
        task - the origin task, cannot be null.
        Returns:
        a newly created task with a specified name, never null.
      • createNamedTask

        public static <T,​M1 extends org.eclipse.emf.ecore.EObject,​M2 extends org.eclipse.emf.ecore.EObject,​M3 extends org.eclipse.emf.ecore.EObject> IModelApiTask3<T,​M1,​M2,​M3> createNamedTask​(String name,
                                                                                                                                                                                                                                    IModelApiTask3<T,​M1,​M2,​M3> task)
        Creates a new model API task with the specified name.
        Parameters:
        name - the name of the task, cannot be null.
        task - the origin task, cannot be null.
        Returns:
        a newly created task with a specified name, never null.
      • createNamedTask

        public static <T> IModelApiTaskN<T> createNamedTask​(String name,
                                                            IModelApiTaskN<T> task)
        Creates a new model API task with the specified name.
        Parameters:
        name - the name of the task, cannot be null.
        task - the origin task, cannot be null.
        Returns:
        a newly created task with a specified name, never null.