View Javadoc
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.artifact.repository.metadata;
7   
8   /**
9    * Snapshot data for the last artifact corresponding to the
10   * SNAPSHOT base version.
11   * 
12   * @version $Revision$ $Date$
13   */
14  @SuppressWarnings( "all" )
15  public class Snapshot
16      implements java.io.Serializable, java.lang.Cloneable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * The timestamp when this version was deployed. The timestamp
25       * is expressed using UTC in the format yyyyMMdd.HHmmss.
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 timestamp when this version was deployed. The
77       * timestamp is expressed using UTC in the format
78       * yyyyMMdd.HHmmss.
79       * 
80       * @return String
81       */
82      public String getTimestamp()
83      {
84          return this.timestamp;
85      } //-- String getTimestamp()
86  
87      /**
88       * Get whether to use a local copy instead (with filename that
89       * includes the base version).
90       * 
91       * @return boolean
92       */
93      public boolean isLocalCopy()
94      {
95          return this.localCopy;
96      } //-- boolean isLocalCopy()
97  
98      /**
99       * Set the incremental build number.
100      * 
101      * @param buildNumber a buildNumber object.
102      */
103     public void setBuildNumber( int buildNumber )
104     {
105         this.buildNumber = buildNumber;
106     } //-- void setBuildNumber( int )
107 
108     /**
109      * Set whether to use a local copy instead (with filename that
110      * includes the base version).
111      * 
112      * @param localCopy a localCopy object.
113      */
114     public void setLocalCopy( boolean localCopy )
115     {
116         this.localCopy = localCopy;
117     } //-- void setLocalCopy( boolean )
118 
119     /**
120      * Set the timestamp when this version was deployed. The
121      * timestamp is expressed using UTC in the format
122      * yyyyMMdd.HHmmss.
123      * 
124      * @param timestamp a timestamp object.
125      */
126     public void setTimestamp( String timestamp )
127     {
128         this.timestamp = timestamp;
129     } //-- void setTimestamp( String )
130 
131 }