Class AnnotatedCartridgeImpl

java.lang.Object
de.spraener.nxtgen.cartridges.AnnotatedCartridgeImpl
All Implemented Interfaces:
Cartridge

public class AnnotatedCartridgeImpl extends Object implements Cartridge
  • Constructor Details

    • AnnotatedCartridgeImpl

      public AnnotatedCartridgeImpl()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Cartridge
      The nane of the cartridge. For logging purpose.
      Specified by:
      getName in interface Cartridge
      Returns:
      The name of this cartridge
    • getTransformations

      public List<Transformation> getTransformations()
      Description copied from interface: Cartridge

      Returns a list of Transformations to be executed before the generators are mapped. NextGen will execute all Transformations of this cartridge on the same instance of a model. But each cartridge will start with a brand new model instance.

      The Transformations are executed in exact the order they are listed here.

      Specified by:
      getTransformations in interface Cartridge
      Returns:
      a (maybe empty) list of Transformations to be executed.
      See Also:
    • mapGenerators

      public List<CodeGeneratorMapping> mapGenerators(Model m)
      Description copied from interface: Cartridge
      Do a Mapping of ModelElements inside the Model to CodeGeneratos. This method is called after all transformations have been executed.
      Specified by:
      mapGenerators in interface Cartridge
      Returns:
    • getGeneratorWrappers

      public List<GeneratorWrapper> getGeneratorWrappers()