01: package org.acm.seguin;
02:
03: /**
04: * The current version of JRefactory
05: *
06: *@author Chris Seguin
07: */
08: public class JRefactoryVersion {
09: /**
10: * Gets the MajorVersion attribute of the JRefactoryVersion object
11: *
12: *@return The MajorVersion value
13: */
14: public int getMajorVersion() {
15: return 2;
16: }
17:
18: /**
19: * Gets the MinorVersion attribute of the JRefactoryVersion object
20: *
21: *@return The MinorVersion value
22: */
23: public int getMinorVersion() {
24: return 9;
25: }
26:
27: /**
28: * Gets the Build attribute of the JRefactoryVersion object
29: *
30: *@return The Build value
31: */
32: public int getBuild() {
33: return 18;
34: }
35:
36: /**
37: * Converts the JRefactoryVersion to a string
38: *
39: *@return a string representing the version
40: */
41: public String toString() {
42: StringBuffer buffer = new StringBuffer();
43:
44: buffer.append(getMajorVersion());
45: buffer.append('.');
46:
47: buffer.append(getMinorVersion());
48: buffer.append('.');
49:
50: buffer.append(getBuild());
51:
52: return buffer.toString();
53: }
54:
55: public static void main(String[] args) {
56: System.out.println("Version: "
57: + (new JRefactoryVersion()).toString());
58: }
59: }
|