Class ProjectNameMapper

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

public abstract class ProjectNameMapper extends Object
Implements a name mapper for projects, in particular if the containing folder is not named according to EASy conventions.
Author:
Holger Eichelberger
  • Field Details

    • DEFAULT

      public static final ProjectNameMapper DEFAULT
      The default name mapper assumes that the folder of the project corresponds to the name of the product line (EASy conventions).
    • instance

      private static ProjectNameMapper instance
  • Constructor Details

    • ProjectNameMapper

      public ProjectNameMapper()
  • Method Details

    • setInstance

      public static void setInstance(ProjectNameMapper mapper)
      Defines the mapper instance to be used.
      Parameters:
      mapper - the mapper instance (null is ignored)
    • getInstance

      public static ProjectNameMapper getInstance()
      Returns the actual instance.
      Returns:
      the actual mapper instance
    • getName

      public abstract String getName(File project)
      Returns the name of the project.
      Parameters:
      project - the project location
      Returns:
      the name of the project