Package net.ssehub.easy.standalone.cmd
Class ProjectNameMapper
java.lang.Object
net.ssehub.easy.standalone.cmd.ProjectNameMapper
Implements a name mapper for projects, in particular if the containing folder is not named
according to EASy conventions.
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectNameMapperThe default name mapper assumes that the folder of the project corresponds to the name of the product line (EASy conventions).private static ProjectNameMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectNameMapperReturns the actual instance.abstract StringReturns the name of the project.static voidsetInstance(ProjectNameMapper mapper) Defines the mapper instance to be used.
-
Field Details
-
DEFAULT
The default name mapper assumes that the folder of the project corresponds to the name of the product line (EASy conventions). -
instance
-
-
Constructor Details
-
ProjectNameMapper
public ProjectNameMapper()
-
-
Method Details
-
setInstance
Defines the mapper instance to be used.- Parameters:
mapper- the mapper instance (null is ignored)
-
getInstance
Returns the actual instance.- Returns:
- the actual mapper instance
-
getName
Returns the name of the project.- Parameters:
project- the project location- Returns:
- the name of the project
-