1 19 20 package org.netbeans.modules.schema2beans; 21 22 public class Version implements java.io.Serializable { 23 public final static int MAJVER = 5; 24 public final static int MINVER = 0; 25 public final static int PTCVER = 0; 26 27 private int major; 28 private int minor; 29 private int patch; 30 31 public Version(int major, int minor, int patch) { 32 this.major = major; 33 this.minor = minor; 34 this.patch = patch; 35 } 36 37 public int getMajor() { 38 return this.major; 39 } 40 41 public int getMinor() { 42 return this.minor; 43 } 44 45 public int getPatch() { 46 return this.patch; 47 } 48 49 52 public static String getVersion() { 53 return "version " + MAJVER + "." + MINVER + "." + PTCVER; 54 } 55 } 56 | Popular Tags |