1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 2.1.2, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.model; 7 8 /** 9 * Deployment repository contains the information needed for 10 * deploying to the remote 11 * repository, which adds uniqueVersion property to usual 12 * repositories for download. 13 * 14 * @version $Revision$ $Date$ 15 */ 16 @SuppressWarnings( "all" ) 17 public class DeploymentRepository 18 extends Repository 19 implements java.io.Serializable, java.lang.Cloneable 20 { 21 22 //--------------------------/ 23 //- Class/Member Variables -/ 24 //--------------------------/ 25 26 /** 27 * Whether to assign snapshots a unique version comprised of 28 * the timestamp and 29 * build number, or to use the same version each 30 * time. 31 */ 32 private boolean uniqueVersion = true; 33 34 35 //-----------/ 36 //- Methods -/ 37 //-----------/ 38 39 /** 40 * Method clone. 41 * 42 * @return DeploymentRepository 43 */ 44 public DeploymentRepository clone() 45 { 46 try 47 { 48 DeploymentRepository copy = (DeploymentRepository) super.clone(); 49 50 return copy; 51 } 52 catch ( java.lang.Exception ex ) 53 { 54 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 55 + " does not support clone()" ).initCause( ex ); 56 } 57 } //-- DeploymentRepository clone() 58 59 /** 60 * Get whether to assign snapshots a unique version comprised 61 * of the timestamp and 62 * build number, or to use the same version each 63 * time. 64 * 65 * @return boolean 66 */ 67 public boolean isUniqueVersion() 68 { 69 return this.uniqueVersion; 70 } //-- boolean isUniqueVersion() 71 72 /** 73 * Set whether to assign snapshots a unique version comprised 74 * of the timestamp and 75 * build number, or to use the same version each 76 * time. 77 * 78 * @param uniqueVersion a uniqueVersion object. 79 */ 80 public void setUniqueVersion( boolean uniqueVersion ) 81 { 82 this.uniqueVersion = uniqueVersion; 83 } //-- void setUniqueVersion( boolean ) 84 85 }