- Timestamp:
- Apr 9, 2010, 10:56:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ValidationParser.java
r856 r858 33 33 continue; 34 34 } 35 if (line.startsWith("RES_ITEM")){ 36 lineParts = line.split(" "); 37 name = lineParts[1].substring(0, (lineParts[1].length()-2)); 38 state = "res"; 39 continue; 40 41 } 35 42 if (line.startsWith("};")){ 36 43 state = ""; … … 117 124 } 118 125 private static String getJavaReq(String s){ 119 if ( s. equals("ITEM_REQUIRED") ){126 if ( s.contains("ITEM_REQUIRED") ){ 120 127 s = "true"; 121 128 } else { … … 133 140 return s; 134 141 } 142 /** 143 * @author tgoecke 144 */ 135 145 private enum prettyNames{ 136 146 CATALOG ("cat_items", "catalog"), … … 143 153 RUNSCRIPT ("runscript_items", "runscript"), 144 154 SCHEDULE ("sch_items", "schedule"), 145 STORAGE DAEMON ("store_items", "storagedaemon"),155 STORAGE ("store_items", "storage"), 146 156 AUTOCHANGER ("changer_items", "autochanger"), 147 DEVICE ("dev_items", "device"); 157 DEVICE ("dev_items", "device"), 158 JOB("job_items", "job"), 159 MESSAGE("msgs_item","message"); 148 160 149 161 private String ugly; … … 155 167 } 156 168 } 169 /** 170 * @author tgoecke 171 */ 157 172 private enum conf2type{ 173 /** 174 * @uml.property name="sTOREPOOL" 175 * @uml.associationEnd 176 */ 158 177 STOREPOOL ("store_pool", "boolean"), 178 /** 179 * @uml.property name="sTOREBIT" 180 * @uml.associationEnd 181 */ 159 182 STOREBIT ("store_bit","boolean"), 183 /** 184 * @uml.property name="sTORE_STR" 185 * @uml.associationEnd 186 */ 160 187 STORE_STR ("store_str","String"), 188 /** 189 * @uml.property name="sTORE_NAME" 190 * @uml.associationEnd 191 */ 161 192 STORE_NAME ("store_name", "String"), 193 /** 194 * @uml.property name="sTORE_STRNAME" 195 * @uml.associationEnd 196 */ 162 197 STORE_STRNAME ("store_strname", "String"), 198 /** 199 * @uml.property name="sTORE_PINT32" 200 * @uml.associationEnd 201 */ 163 202 STORE_PINT32 ("store_pint32", "int"), 203 /** 204 * @uml.property name="sTORE_SIZE" 205 * @uml.associationEnd 206 */ 164 207 STORE_SIZE ("store_size", "int"), 208 /** 209 * @uml.property name="sTORE_DIR" 210 * @uml.associationEnd 211 */ 165 212 STORE_DIR ("store_dir", "path"), 213 /** 214 * @uml.property name="sTORE_PASSWORD" 215 * @uml.associationEnd 216 */ 166 217 STORE_PASSWORD ("store_password", "Password"), 218 /** 219 * @uml.property name="sTORE_TIME" 220 * @uml.associationEnd 221 */ 167 222 STORE_TIME ("store_time", "Date"), 223 /** 224 * @uml.property name="sTORE_ACL" 225 * @uml.associationEnd 226 */ 168 227 STORE_ACL ("store_acl", "Acl"), 228 /** 229 * @uml.property name="sTORE_RES" 230 * @uml.associationEnd 231 */ 169 232 STORE_RES ("store_res", "Resource"); 170 233
Note:
See TracChangeset
for help on using the changeset viewer.