1 19 24 25 package org.netbeans.modules.j2ee.sun.share.configbean; 26 27 38 public final class J2EEVersion extends J2EEBaseVersion { 39 40 42 public static final J2EEVersion J2EE_1_3 = new J2EEVersion( 43 "1.3", 1300, "1.3", 1300); 46 48 public static final J2EEVersion J2EE_1_4 = new J2EEVersion( 49 "1.4", 1400, "1.4", 1400); 52 54 public static final J2EEVersion JAVAEE_5_0 = new J2EEVersion( 55 "5.0", 5000, "5.0", 5000); 58 61 62 64 private J2EEVersion(String version, int nv, String specVersion, int nsv) { 65 super(version, nv, specVersion, nsv, "", ""); } 67 68 75 public int compareTo(Object obj) { 76 J2EEVersion target = (J2EEVersion) obj; 77 return numericCompare(target); 78 } 79 80 public static J2EEVersion getJ2EEVersion(String version) { 81 J2EEVersion result = null; 82 83 if(J2EE_1_3.toString().equals(version)) { 84 result = J2EE_1_3; 85 } else if(J2EE_1_4.toString().equals(version)) { 86 result = J2EE_1_4; 87 } 88 89 return result; 90 } 91 } 92 | Popular Tags |