Class GeneratorComponent

  • All Implemented Interfaces:
    org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

    public class GeneratorComponent
    extends java.lang.Object
    implements org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
    • Constructor Detail

      • GeneratorComponent

        public GeneratorComponent()
    • Method Detail

      • getSlotNames

        protected java.util.List<java.lang.String> getSlotNames()
        Since:
        2.4
      • getOutlets

        protected java.util.Map<java.lang.String,​java.lang.String> getOutlets()
        Since:
        2.4
      • setInjector

        public void setInjector​(com.google.inject.Injector injector)
        sets the Injector to be used to obtain the used IGenerator instance.
      • addSlot

        public void addSlot​(java.lang.String slot)
        adds a slot name to look for Resources (the slot's contents might be a Resource or an Iterable of Resources).
      • preInvoke

        public void preInvoke()
        Specified by:
        preInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
      • addOutlet

        public void addOutlet​(GeneratorComponent.Outlet out)
        an outlet is defined by a name and a path. The generator will internally choose one of the configured outlets when generating a file. the given path defines the root directory of the outlet.
      • invoke

        public void invoke​(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)
        Specified by:
        invoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
      • getConfiguredFileSystemAccess

        protected IFileSystemAccess2 getConfiguredFileSystemAccess()
        Since:
        2.9
      • postInvoke

        public void postInvoke()
        Specified by:
        postInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
      • getOutputConfigurations

        protected java.util.Map<java.lang.String,​OutputConfiguration> getOutputConfigurations()
        Since:
        2.3