Class NewServiceCutContextMapGenerator

java.lang.Object
org.eclipse.xtext.generator.AbstractGenerator
org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator
org.contextmapper.dsl.generator.NewServiceCutContextMapGenerator
All Implemented Interfaces:
org.eclipse.xtext.generator.IGenerator2

public class NewServiceCutContextMapGenerator extends AbstractContextMappingModelGenerator
Uses the Service Cutter engine to calculate a new Service Cut. The new cut is translated back into a new Context Map. Use this class to generate new Context Maps on the basis of Service Cutter.
  • Constructor Details

    • NewServiceCutContextMapGenerator

      public NewServiceCutContextMapGenerator()
  • Method Details

    • generateFromContextMappingModel

      protected void generateFromContextMappingModel(ContextMappingModel model, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
      Specified by:
      generateFromContextMappingModel in class AbstractContextMappingModelGenerator
    • setProjectDirectory

      public void setProjectDirectory(File projectDir)
      Sets the root directory of the project. Must be set if a .servicecutter.yml file shall be created. Otherwise the user is not able to change the Service Cutter input parameters.
    • checkPreconditions

      public void checkPreconditions(ContextMappingModel model)