Package org.contextmapper.dsl.generator
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.
-
-
Field Summary
-
Fields inherited from class org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator
context, contextMappingModel, fsa, resourceSet
-
-
Constructor Summary
Constructors Constructor Description NewServiceCutContextMapGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPreconditions(ContextMappingModel model)
protected void
generateFromContextMappingModel(ContextMappingModel model, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
void
setProjectDirectory(java.io.File projectDir)
Sets the root directory of the project.-
Methods inherited from class org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator
doGenerate
-
-
-
-
Method Detail
-
generateFromContextMappingModel
protected void generateFromContextMappingModel(ContextMappingModel model, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
- Specified by:
generateFromContextMappingModel
in classAbstractContextMappingModelGenerator
-
setProjectDirectory
public void setProjectDirectory(java.io.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)
-
-