@@ -0,0 +1,1235 @@
+package be.shoktan.BeeBreedingManager.model;%0A%0Aimport java.util.Collection;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * Model class to represent a modpack%0A * @author Wisthy%0A *%0A */%0Apublic class Modpack extends ANamedEntity %7B%0A%09private static final Logger LOG = LoggerFactory.getLogger(Modpack.class);%0A%09private Collection%3CPluginVersion%3E plugins;%0A%09%0A%09%0A%09%0A%09// ********** getters & setters ********** //%0A%0A%09/**%0A%09 * @return the plugins%0A%09 */%0A%09public Collection%3CPluginVersion%3E getPlugins() %7B%0A%09%09return plugins;%0A%09%7D%0A%0A%09/**%0A%09 * @param plugins the plugins to set%0A%09 */%0A%09public void setPlugins(Collection%3CPluginVersion%3E plugins) %7B%0A%09%09this.plugins = plugins;%0A%09%7D%0A%09%0A%09%0A%09%0A%09// ********** others ********** //%0A%09%0A%09/**%0A%09 * run validations check on the plugins list to ensure it is correct.%0A%09 */%0A%09public boolean validatePluginList()%7B%0A%09%09if(LOG.isTraceEnabled())LOG.trace(%22starting validation of the plugin list%22);%0A%09%09boolean isValid = true;%0A%09%09for(PluginVersion pluginVersion : plugins)%7B%0A%09%09%09if(pluginVersion == null)%7B%0A%09%09%09%09LOG.error(%22there is a null plugin in the list%22);%0A%09%09%09%09isValid = false;%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09pluginVersion.validate();%0A%09%09%7D%0A%09%09if(LOG.isTraceEnabled())LOG.trace(%22end of the validation of the plugin list%22);%0A%09%09return isValid;%0A%09%7D%0A%7D%0A

Create Modpack.java