Class ProjectConfiguration
- java.lang.Object
-
- org.openstreetmap.atlas.checks.maproulette.data.ProjectConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class ProjectConfiguration extends java.lang.Object implements java.io.SerializableHelper class to decouple MapRouletteConfiguration from configuring projects. This allows easier updating of code that handles projects without touching general Map Roulette configuration code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectConfiguration(java.lang.String name)Defines a basic project, where all optional fields default to name.ProjectConfiguration(java.lang.String name, java.lang.String description, java.lang.String displayName, boolean enabled)Defines a project and all of its fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectbuildProject()Initialize a project defined by this configuration.java.lang.StringgetDescription()java.lang.StringgetDisplayName()java.lang.StringgetName()booleanisEnabled()voidsetEnabled(boolean enabled)
-
-
-
Constructor Detail
-
ProjectConfiguration
public ProjectConfiguration(java.lang.String name)
Defines a basic project, where all optional fields default to name.- Parameters:
name- The name of the project
-
ProjectConfiguration
public ProjectConfiguration(java.lang.String name, java.lang.String description, java.lang.String displayName, boolean enabled)Defines a project and all of its fields.- Parameters:
name- The name of the projectdescription- The description of the projectdisplayName- The name displayed on Map Roulette for the projectenabled- Whether the project is enabled or not
-
-
Method Detail
-
buildProject
public Project buildProject()
Initialize a project defined by this configuration.- Returns:
- A new project with the parameters held in this configuration.
-
getDescription
public java.lang.String getDescription()
-
getDisplayName
public java.lang.String getDisplayName()
-
getName
public java.lang.String getName()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-