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