View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.0.1 on 2009-09-09 03:30:24,
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  public class Snapshot
16      implements java.io.Serializable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * The time it was deployed.
25       */
26      private String timestamp;
27  
28      /**
29       * The incremental build number.
30       */
31      private int buildNumber = 0;
32  
33      /**
34       * Whether to use a local copy instead (with filename that
35       * includes the base version).
36       */
37      private boolean localCopy = false;
38  
39  
40        //-----------/
41       //- Methods -/
42      //-----------/
43  
44      /**
45       * Get the incremental build number.
46       * 
47       * @return int
48       */
49      public int getBuildNumber()
50      {
51          return this.buildNumber;
52      } //-- int getBuildNumber()
53  
54      /**
55       * Get the time it was deployed.
56       * 
57       * @return String
58       */
59      public String getTimestamp()
60      {
61          return this.timestamp;
62      } //-- String getTimestamp()
63  
64      /**
65       * Get whether to use a local copy instead (with filename that
66       * includes the base version).
67       * 
68       * @return boolean
69       */
70      public boolean isLocalCopy()
71      {
72          return this.localCopy;
73      } //-- boolean isLocalCopy()
74  
75      /**
76       * Set the incremental build number.
77       * 
78       * @param buildNumber
79       */
80      public void setBuildNumber( int buildNumber )
81      {
82          this.buildNumber = buildNumber;
83      } //-- void setBuildNumber( int )
84  
85      /**
86       * Set whether to use a local copy instead (with filename that
87       * includes the base version).
88       * 
89       * @param localCopy
90       */
91      public void setLocalCopy( boolean localCopy )
92      {
93          this.localCopy = localCopy;
94      } //-- void setLocalCopy( boolean )
95  
96      /**
97       * Set the time it was deployed.
98       * 
99       * @param timestamp
100      */
101     public void setTimestamp( String timestamp )
102     {
103         this.timestamp = timestamp;
104     } //-- void setTimestamp( String )
105 
106 
107 }