Package net.ssehub.easy.standalone.cmd
Class ProjectCreationFlavour
java.lang.Object
net.ssehub.easy.standalone.cmd.ProjectCreationFlavour
Project creation flavours. The mechanism around IEASyProjectConfigurator cannot be applied
here as it is tightly linked to Eclipse.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidApplies the flavour.voidconfigure(net.ssehub.easy.producer.core.persistence.EASyPersistencer persistencer) Configures the given persistencer for application.static voidforEach(Consumer<ProjectCreationFlavour> consumer) Appliesconsumerto a name-sorted list of all flavor names.static voidforEach(List<ProjectCreationFlavour> flavours, Consumer<ProjectCreationFlavour> consumer) Appliesconsumerto allflavours.abstract StringReturns a short description.static ProjectCreationFlavourgetFlavour(String name) Returns a flavour.static List<ProjectCreationFlavour> getFlavours(String... names) Returns a flavours.abstract StringgetName()Returns the name.static voidregisterFlavour(ProjectCreationFlavour flavour) Registers a flavour.
-
Field Details
-
flavours
-
-
Constructor Details
-
ProjectCreationFlavour
public ProjectCreationFlavour()
-
-
Method Details
-
registerFlavour
Registers a flavour.- Parameters:
flavour- the flavour
-
forEach
Appliesconsumerto a name-sorted list of all flavor names.- Parameters:
consumer- the consumer
-
getFlavour
Returns a flavour.- Parameters:
name- the name- Returns:
- the flavour, may be null
-
getFlavours
Returns a flavours.- Parameters:
names- the names- Returns:
- the flavours, may be empty
-
forEach
public static void forEach(List<ProjectCreationFlavour> flavours, Consumer<ProjectCreationFlavour> consumer) Appliesconsumerto allflavours.- Parameters:
flavours- the flavoursconsumer- the consumer
-
getName
Returns the name.- Returns:
- the name
-
getDescription
Returns a short description.- Returns:
- the description
-
apply
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
-