View Javadoc

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