001 /* 002 =================== DO NOT EDIT THIS FILE ==================== 003 Generated by Modello 1.4.1 on 2013-02-24 03:32:14, 004 any modifications will be overwritten. 005 ============================================================== 006 */ 007 008 package org.apache.maven.model; 009 010 /** 011 * Repository contains the information needed for deploying to the 012 * remote 013 * repository. 014 * 015 * @version $Revision$ $Date$ 016 */ 017 @SuppressWarnings( "all" ) 018 public class DeploymentRepository 019 extends Repository 020 implements java.io.Serializable, java.lang.Cloneable 021 { 022 023 //--------------------------/ 024 //- Class/Member Variables -/ 025 //--------------------------/ 026 027 /** 028 * Whether to assign snapshots a unique version comprised of 029 * the timestamp and 030 * build number, or to use the same version each 031 * time. 032 */ 033 private boolean uniqueVersion = true; 034 035 036 //-----------/ 037 //- Methods -/ 038 //-----------/ 039 040 /** 041 * Method clone. 042 * 043 * @return DeploymentRepository 044 */ 045 public DeploymentRepository clone() 046 { 047 try 048 { 049 DeploymentRepository copy = (DeploymentRepository) super.clone(); 050 051 return copy; 052 } 053 catch ( java.lang.Exception ex ) 054 { 055 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 056 + " does not support clone()" ).initCause( ex ); 057 } 058 } //-- DeploymentRepository clone() 059 060 /** 061 * Get whether to assign snapshots a unique version comprised 062 * of the timestamp and 063 * build number, or to use the same version each 064 * time. 065 * 066 * @return boolean 067 */ 068 public boolean isUniqueVersion() 069 { 070 return this.uniqueVersion; 071 } //-- boolean isUniqueVersion() 072 073 /** 074 * Set whether to assign snapshots a unique version comprised 075 * of the timestamp and 076 * build number, or to use the same version each 077 * time. 078 * 079 * @param uniqueVersion 080 */ 081 public void setUniqueVersion( boolean uniqueVersion ) 082 { 083 this.uniqueVersion = uniqueVersion; 084 } //-- void setUniqueVersion( boolean ) 085 086 }