001package org.apache.archiva.model; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022/** 023 * The Snapshot Version. 024 * 025 * @version $Revision$ $Date$ 026 */ 027@SuppressWarnings( "all" ) 028public class SnapshotVersion 029 implements java.io.Serializable 030{ 031 032 //--------------------------/ 033 //- Class/Member Variables -/ 034 //--------------------------/ 035 036 /** 037 * 038 * The unique timestamp for the snapshot version. 039 * 040 */ 041 private String timestamp; 042 043 /** 044 * The incremental build number of the snapshot. 045 */ 046 private int buildNumber = 0; 047 048 049 //-----------/ 050 //- Methods -/ 051 //-----------/ 052 053 /** 054 * Get the incremental build number of the snapshot. 055 * 056 * @return int 057 */ 058 public int getBuildNumber() 059 { 060 return this.buildNumber; 061 } //-- int getBuildNumber() 062 063 /** 064 * Get the unique timestamp for the snapshot version. 065 * 066 * @return String 067 */ 068 public String getTimestamp() 069 { 070 return this.timestamp; 071 } //-- String getTimestamp() 072 073 /** 074 * Set the incremental build number of the snapshot. 075 * 076 * @param buildNumber 077 */ 078 public void setBuildNumber( int buildNumber ) 079 { 080 this.buildNumber = buildNumber; 081 } //-- void setBuildNumber( int ) 082 083 /** 084 * Set the unique timestamp for the snapshot version. 085 * 086 * @param timestamp 087 */ 088 public void setTimestamp( String timestamp ) 089 { 090 this.timestamp = timestamp; 091 } //-- void setTimestamp( String ) 092 093 094 private static final long serialVersionUID = -1251466956496493405L; 095 096}