View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:03,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.artifact.repository.metadata;
9   
10  /**
11   * Snapshot data for the current version.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class Snapshot
17      implements java.io.Serializable, java.lang.Cloneable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The time it was deployed.
26       */
27      private String timestamp;
28  
29      /**
30       * The incremental build number.
31       */
32      private int buildNumber = 0;
33  
34      /**
35       * Whether to use a local copy instead (with filename that
36       * includes the base version).
37       */
38      private boolean localCopy = false;
39  
40  
41        //-----------/
42       //- Methods -/
43      //-----------/
44  
45      /**
46       * Method clone.
47       * 
48       * @return Snapshot
49       */
50      public Snapshot clone()
51      {
52          try
53          {
54              Snapshot copy = (Snapshot) super.clone();
55  
56              return copy;
57          }
58          catch ( java.lang.Exception ex )
59          {
60              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
61                  + " does not support clone()" ).initCause( ex );
62          }
63      } //-- Snapshot clone()
64  
65      /**
66       * Get the incremental build number.
67       * 
68       * @return int
69       */
70      public int getBuildNumber()
71      {
72          return this.buildNumber;
73      } //-- int getBuildNumber()
74  
75      /**
76       * Get the time it was deployed.
77       * 
78       * @return String
79       */
80      public String getTimestamp()
81      {
82          return this.timestamp;
83      } //-- String getTimestamp()
84  
85      /**
86       * Get whether to use a local copy instead (with filename that
87       * includes the base version).
88       * 
89       * @return boolean
90       */
91      public boolean isLocalCopy()
92      {
93          return this.localCopy;
94      } //-- boolean isLocalCopy()
95  
96      /**
97       * Set the incremental build number.
98       * 
99       * @param buildNumber
100      */
101     public void setBuildNumber( int buildNumber )
102     {
103         this.buildNumber = buildNumber;
104     } //-- void setBuildNumber( int )
105 
106     /**
107      * Set whether to use a local copy instead (with filename that
108      * includes the base version).
109      * 
110      * @param localCopy
111      */
112     public void setLocalCopy( boolean localCopy )
113     {
114         this.localCopy = localCopy;
115     } //-- void setLocalCopy( boolean )
116 
117     /**
118      * Set the time it was deployed.
119      * 
120      * @param timestamp
121      */
122     public void setTimestamp( String timestamp )
123     {
124         this.timestamp = timestamp;
125     } //-- void setTimestamp( String )
126 
127 }