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

org.apache.maven.model.DeploymentRepository Maven / Gradle / Ivy

There is a newer version: 3.0.0-alpha-3
Show newest version
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================

package org.apache.maven.model;

/**
 * Deployment repository contains the information needed for
 * deploying to the remote
 *         repository, which adds uniqueVersion property to usual
 * repositories for download.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class DeploymentRepository
    extends Repository
    implements java.io.Serializable, java.lang.Cloneable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Whether to assign snapshots a unique version comprised of
     * the timestamp and
     *             build number, or to use the same version each
     * time.
     */
    private boolean uniqueVersion = true;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method clone.
     * 
     * @return DeploymentRepository
     */
    public DeploymentRepository clone()
    {
        try
        {
            DeploymentRepository copy = (DeploymentRepository) super.clone();

            return copy;
        }
        catch ( java.lang.Exception ex )
        {
            throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
                + " does not support clone()" ).initCause( ex );
        }
    } //-- DeploymentRepository clone()

    /**
     * Get whether to assign snapshots a unique version comprised
     * of the timestamp and
     *             build number, or to use the same version each
     * time.
     * 
     * @return boolean
     */
    public boolean isUniqueVersion()
    {
        return this.uniqueVersion;
    } //-- boolean isUniqueVersion()

    /**
     * Set whether to assign snapshots a unique version comprised
     * of the timestamp and
     *             build number, or to use the same version each
     * time.
     * 
     * @param uniqueVersion a uniqueVersion object.
     */
    public void setUniqueVersion( boolean uniqueVersion )
    {
        this.uniqueVersion = uniqueVersion;
    } //-- void setUniqueVersion( boolean )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy