Class ProjectConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProjectConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    Helper 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.
    • 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 project
        description - The description of the project
        displayName - The name displayed on Map Roulette for the project
        enabled - 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.
      • getName

        public java.lang.String getName()
      • getDescription

        public java.lang.String getDescription()
      • getDisplayName

        public java.lang.String getDisplayName()
      • isEnabled

        public boolean isEnabled()