All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.javadpkg.plugin.cfg.ChangeLogVersionEntryConfiguration Maven / Gradle / Ivy

The newest version!
/*
 * dpkg - Debian Package library and the Debian Package Maven plugin
 * (c) Copyright 2016 Gerrit Hohl
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package net.sourceforge.javadpkg.plugin.cfg;

import java.util.ArrayList;
import java.util.List;

import org.apache.maven.plugins.annotations.Parameter;

/**
 * 

* The configuration of an entry for a version. *

* * @author Gerrit Hohl ([email protected]) * @version 1.0, 09.05.2016 by Gerrit Hohl */ public class ChangeLogVersionEntryConfiguration { /** The name of the package. */ @Parameter(name = "name", required = true) private String name; /** The version. */ @Parameter(name = "version", required = true) private String version; /** The distributions. */ @Parameter(name = "distributions", required = true) private List distributions; /** The urgency of the version. */ @Parameter(name = "urgency", required = true) private String urgency; /** The details. */ @Parameter(name = "details", required = true) private List details; /** The maintainer. */ @Parameter(name = "maintainer", required = true) private String maintainer; /** The date. */ @Parameter(name = "date", required = true) private String date; /** *

* Creates a configuration. *

*/ public ChangeLogVersionEntryConfiguration() { super(); this.name = null; this.version = null; this.distributions = new ArrayList<>(); this.urgency = null; this.details = new ArrayList<>(); this.maintainer = null; this.date = null; } /** *

* Returns the name of the package. *

* * @return The name or null, if no name is set. */ public String getName() { return this.name; } /** *

* Sets the name of the package. *

* * @param name * The name. */ public void setName(String name) { this.name = name; } /** *

* Returns the version. *

* * @return The version or null, if no version is set. */ public String getVersion() { return this.version; } /** *

* Sets the version. *

* * @param version * The version. */ public void setVersion(String version) { this.version = version; } /** *

* Returns the distributions. *

* * @return The distributions. */ public List getDistributions() { return (new ArrayList<>(this.distributions)); } /** *

* Sets the distributions. *

* * @param distributions * The distributions. */ public void setDistributions(List distributions) { if (distributions == null) { this.distributions = new ArrayList<>(); } else { this.distributions = new ArrayList<>(distributions); } } /** *

* Returns the urgency of the version. *

* * @return The urgency or null, if no urgency is set. */ public String getUrgency() { return this.urgency; } /** *

* Sets the urgency of the version. *

* * @param urgency * The urgency. */ public void setUrgency(String urgency) { this.urgency = urgency; } /** *

* Returns the details. *

* * @return The details. */ public List getDetails() { return (new ArrayList<>(this.details)); } /** *

* Sets the details. *

* * @param details * The details. */ public void setDetails(List details) { if (details == null) { this.details = new ArrayList<>(); } else { this.details = new ArrayList<>(details); } } /** *

* Returns the maintainer. *

* * @return The maintainer or null, if no maintainer is set. */ public String getMaintainer() { return this.maintainer; } /** *

* Sets the maintainer. *

* * @param maintainer * The maintainer. */ public void setMaintainer(String maintainer) { this.maintainer = maintainer; } /** *

* Returns the date. *

* * @return The date or null, if no date is set. */ public String getDate() { return this.date; } /** *

* Sets the date. *

* * @param date * The date. */ public void setDate(String date) { this.date = date; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy