Class ProjectCreationFlavour

java.lang.Object
net.ssehub.easy.standalone.cmd.ProjectCreationFlavour

public abstract class ProjectCreationFlavour extends Object
Project creation flavours. The mechanism around IEASyProjectConfigurator cannot be applied here as it is tightly linked to Eclipse.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • ProjectCreationFlavour

      public ProjectCreationFlavour()
  • Method Details

    • registerFlavour

      public static void registerFlavour(ProjectCreationFlavour flavour)
      Registers a flavour.
      Parameters:
      flavour - the flavour
    • forEach

      public static void forEach(Consumer<ProjectCreationFlavour> consumer)
      Applies consumer to a name-sorted list of all flavor names.
      Parameters:
      consumer - the consumer
    • getFlavour

      public static ProjectCreationFlavour getFlavour(String name)
      Returns a flavour.
      Parameters:
      name - the name
      Returns:
      the flavour, may be null
    • getFlavours

      public static List<ProjectCreationFlavour> getFlavours(String... names)
      Returns a flavours.
      Parameters:
      names - the names
      Returns:
      the flavours, may be empty
    • forEach

      public static void forEach(List<ProjectCreationFlavour> flavours, Consumer<ProjectCreationFlavour> consumer)
      Applies consumer to all flavours.
      Parameters:
      flavours - the flavours
      consumer - the consumer
    • getName

      public abstract String getName()
      Returns the name.
      Returns:
      the name
    • getDescription

      public abstract String getDescription()
      Returns a short description.
      Returns:
      the description
    • apply

      public abstract void apply(File projectFolder)
      Applies the flavour.
      Parameters:
      projectFolder - the folder to apply the flavour
    • configure

      public void configure(net.ssehub.easy.producer.core.persistence.EASyPersistencer persistencer)
      Configures the given persistencer for application. +
      Parameters:
      persistencer - the persistencer