Class EASyProjectCreatorFactory
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.persistency.project_creation.EASyProjectCreatorFactory
-
public class EASyProjectCreatorFactory extends java.lang.ObjectCreates new EASy projects in Eclipse.- Author:
- El-Sharkawy
-
-
Constructor Summary
Constructors Constructor Description EASyProjectCreatorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProductLineProjectcreateNewProject(java.lang.String name, java.lang.String predecessorID, boolean lazy, IEASyProjectConfigurator... configurators)Creates a new EASy project.static ValidProjectNameTypeisValidProjectName(java.lang.String name)Checks whether a project with the given name could be created.static ValidProjectNameTypeisValidProjectName(java.lang.String name, boolean lazy)Checks whether a project with the given name could be created.
-
-
-
Method Detail
-
isValidProjectName
public static ValidProjectNameType isValidProjectName(java.lang.String name)
Checks whether a project with the given name could be created.- Parameters:
name- The name of the new project.- Returns:
- A
ValidProjectNameType
-
isValidProjectName
public static ValidProjectNameType isValidProjectName(java.lang.String name, boolean lazy)
Checks whether a project with the given name could be created.- Parameters:
name- The name of the new project.lazy- iftrue, create only required parts, else assume that project does not exist before.- Returns:
- A
ValidProjectNameType
-
createNewProject
public static ProductLineProject createNewProject(java.lang.String name, java.lang.String predecessorID, boolean lazy, IEASyProjectConfigurator... configurators) throws ProjectCreationException
Creates a new EASy project.- Parameters:
name- The name of the EASy project.predecessorID- Optional: The projectID of a predecessor for the new project. If null a new (not derived) project without a predecessor will be created.lazy- iftrue, create only required parts, else assume that project does not exist before.configurators- Optional list of configurators to configure the newly created project, maybe null. The configurators will be applied in the ordering of the array.- Returns:
- The newly created
ProductLineProjectwith the specified project name, created inside the workspace. - Throws:
ProjectCreationException- If a name was used, which could not be used for creating a new EASy project.
-
-