This project has retired. For details please refer to its Attic page.
SnapshotVersion xref
View Javadoc
1   package org.apache.archiva.model;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * The Snapshot Version.
24   * 
25   * @version $Revision$ $Date$
26   */
27  @SuppressWarnings( "all" )
28  public class SnapshotVersion
29      implements java.io.Serializable
30  {
31  
32        //--------------------------/
33       //- Class/Member Variables -/
34      //--------------------------/
35  
36      /**
37       * 
38       *             The unique timestamp for the snapshot version.
39       *           
40       */
41      private String timestamp;
42  
43      /**
44       * The incremental build number of the snapshot.
45       */
46      private int buildNumber = 0;
47  
48  
49        //-----------/
50       //- Methods -/
51      //-----------/
52  
53      /**
54       * Get the incremental build number of the snapshot.
55       * 
56       * @return int
57       */
58      public int getBuildNumber()
59      {
60          return this.buildNumber;
61      } //-- int getBuildNumber()
62  
63      /**
64       * Get the unique timestamp for the snapshot version.
65       * 
66       * @return String
67       */
68      public String getTimestamp()
69      {
70          return this.timestamp;
71      } //-- String getTimestamp()
72  
73      /**
74       * Set the incremental build number of the snapshot.
75       * 
76       * @param buildNumber
77       */
78      public void setBuildNumber( int buildNumber )
79      {
80          this.buildNumber = buildNumber;
81      } //-- void setBuildNumber( int )
82  
83      /**
84       * Set the unique timestamp for the snapshot version.
85       * 
86       * @param timestamp
87       */
88      public void setTimestamp( String timestamp )
89      {
90          this.timestamp = timestamp;
91      } //-- void setTimestamp( String )
92  
93      
94      private static final long serialVersionUID = -1251466956496493405L;
95            
96  }