JAL-3299 JAL-3280 javadoc on BuildDetails bean
[jalview.git] / src / jalview / bin / BuildDetails.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $$Year-Rel$$ The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3
10  * of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  */
21 package jalview.bin;
22
23 import jalview.api.BuildDetailsI;
24
25 public class BuildDetails implements BuildDetailsI
26 {
27   private static String buildDate;
28
29   private static String version;
30
31   private static String installation;
32
33   public BuildDetails()
34   {
35
36   }
37
38   /**
39    * update singleton Strings with these build details
40    * 
41    * @param version
42    * @param buildDate
43    * @param installation
44    */
45   public BuildDetails(String version, String buildDate, String installation)
46   {
47     BuildDetails.version = version;
48     BuildDetails.buildDate = buildDate;
49     BuildDetails.installation = installation;
50   }
51
52   @Override
53   public String getBuildDate()
54   {
55     return buildDate;
56   }
57
58   public static void setBuilddate(String buildDate)
59   {
60     BuildDetails.buildDate = buildDate;
61   }
62
63   @Override
64   public String getVersion()
65   {
66     return version;
67   }
68
69   public static void setVersion(String version)
70   {
71     BuildDetails.version = version;
72   }
73
74   @Override
75   public String getInstallation()
76   {
77     return installation;
78   }
79
80   public static void setInstallation(String installation)
81   {
82     BuildDetails.installation = installation;
83   }
84
85 }