1 23 24 29 30 package com.sun.enterprise.tools.upgrade.common; 31 32 36 import java.util.HashMap ; 37 import java.util.HashSet ; 38 import com.sun.enterprise.util.i18n.StringManager; 39 public final class UpgradeConstants { 40 41 private static StringManager stringManager = StringManager.getManager("com.sun.enterprise.tools.upgrade.common"); 42 43 44 public UpgradeConstants() { 45 } 46 public static final String VERSION_AS7X_PE = "as7xpe"; 47 public static final String VERSION_AS7X_SE = "as7xse"; 48 public static final String VERSION_AS7X_EE = "as7xee"; 49 50 public static final String VERSION_AS80_PE = "as80pe"; 51 public static final String VERSION_AS81_PE = "as81pe"; 52 public static final String VERSION_AS80_SE = "as81se"; 53 public static final String VERSION_AS81_EE = "as81ee"; 54 55 public static final String VERSION_AS82_PE = "as82pe"; 56 public static final String VERSION_AS82_SE = "as82se"; 57 public static final String VERSION_AS82_EE = "as82ee"; 58 59 public static final String VERSION_AS90_PE = "as90pe"; 60 public static final String VERSION_AS90_SE = "as90se"; 61 public static final String VERSION_AS90_EE = "as90ee"; 62 63 public static final String EDITION_PE = "pe"; 64 public static final String EDITION_SE = "se"; 65 public static final String EDITION_EE = "ee"; 66 67 public static final String VERSION_7X = "7x"; 68 public static final String VERSION_80 = "80"; 69 public static final String VERSION_81 = "81"; 70 public static final String VERSION_90 = "90"; 71 72 public static final HashMap supportMap = new HashMap (); 73 static{ 74 HashSet x7PESet = new HashSet (); 75 x7PESet.add(VERSION_AS90_PE); 76 x7PESet.add(VERSION_AS90_SE); 77 x7PESet.add(VERSION_AS90_EE); 78 supportMap.put(VERSION_AS7X_PE,x7PESet); 79 80 HashSet x7SESet = new HashSet (); 81 x7SESet.add(VERSION_AS90_SE); 82 x7SESet.add(VERSION_AS90_EE); 83 supportMap.put(VERSION_AS7X_SE,x7SESet); 84 85 HashSet x7EESet = new HashSet (); 86 x7EESet.add(VERSION_AS90_EE); 87 supportMap.put(VERSION_AS7X_EE,x7EESet); 88 89 HashSet pE80Set = new HashSet (); 90 pE80Set.add(VERSION_AS90_PE); 91 pE80Set.add(VERSION_AS90_SE); 92 pE80Set.add(VERSION_AS90_EE); 93 supportMap.put(VERSION_AS80_PE,pE80Set); 94 95 HashSet eE80Set = new HashSet (); 96 eE80Set.add(VERSION_AS90_EE); 97 supportMap.put(VERSION_AS80_SE,eE80Set); 98 99 HashSet pE81Set = new HashSet (); 100 pE81Set.add(VERSION_AS90_PE); 101 pE81Set.add(VERSION_AS90_SE); 102 pE81Set.add(VERSION_AS90_EE); 103 supportMap.put(VERSION_AS81_PE,pE81Set); 104 105 HashSet eE81Set = new HashSet (); 106 eE81Set.add(VERSION_AS90_EE); 107 supportMap.put(VERSION_AS81_EE,eE81Set); 108 109 HashSet pE90Set = new HashSet (); 110 pE90Set.add(VERSION_AS90_SE); 111 pE90Set.add(VERSION_AS90_EE); 112 supportMap.put(VERSION_AS90_PE,pE90Set); 113 114 HashSet sE90Set = new HashSet (); 115 sE90Set.add(VERSION_AS90_EE); 116 supportMap.put(VERSION_AS90_SE,sE90Set); 117 118 HashSet eE90Set = new HashSet (); 119 supportMap.put(VERSION_AS90_EE,eE90Set); 120 }; 121 122 125 public static String readableString(String ve){ 126 return stringManager.getString("upgradeConstants."+ve); 127 } 128 } 129 | Popular Tags |