Ignore:
Timestamp:
Apr 9, 2010, 10:56:07 AM (14 years ago)
Author:
tobias
Message:

visual design slightly modified. tree functions extended

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ValidationParser.java

    r856 r858  
    3333                                continue;
    3434                        }
     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                        }
    3542                        if (line.startsWith("};")){
    3643                                state = "";
     
    117124        }
    118125        private static String getJavaReq(String s){
    119                 if ( s.equals("ITEM_REQUIRED") ){
     126                if ( s.contains("ITEM_REQUIRED") ){
    120127                        s = "true";
    121128                } else {
     
    133140                return s;
    134141        }
     142        /**
     143         * @author   tgoecke
     144         */
    135145        private enum prettyNames{
    136146                CATALOG ("cat_items", "catalog"),
     
    143153                RUNSCRIPT ("runscript_items", "runscript"),
    144154                SCHEDULE ("sch_items", "schedule"),
    145                 STORAGEDAEMON ("store_items", "storagedaemon"),
     155                STORAGE ("store_items", "storage"),
    146156                AUTOCHANGER ("changer_items", "autochanger"),
    147                 DEVICE ("dev_items", "device");
     157                DEVICE ("dev_items", "device"),
     158                JOB("job_items", "job"),
     159                MESSAGE("msgs_item","message");
    148160               
    149161                private String ugly;
     
    155167                }
    156168        }
     169        /**
     170         * @author   tgoecke
     171         */
    157172        private enum conf2type{
     173                /**
     174                 * @uml.property  name="sTOREPOOL"
     175                 * @uml.associationEnd 
     176                 */
    158177                STOREPOOL ("store_pool", "boolean"),
     178                /**
     179                 * @uml.property  name="sTOREBIT"
     180                 * @uml.associationEnd 
     181                 */
    159182                STOREBIT ("store_bit","boolean"),
     183                /**
     184                 * @uml.property  name="sTORE_STR"
     185                 * @uml.associationEnd 
     186                 */
    160187                STORE_STR ("store_str","String"),
     188                /**
     189                 * @uml.property  name="sTORE_NAME"
     190                 * @uml.associationEnd 
     191                 */
    161192                STORE_NAME ("store_name", "String"),
     193                /**
     194                 * @uml.property  name="sTORE_STRNAME"
     195                 * @uml.associationEnd 
     196                 */
    162197                STORE_STRNAME ("store_strname", "String"),
     198                /**
     199                 * @uml.property  name="sTORE_PINT32"
     200                 * @uml.associationEnd 
     201                 */
    163202                STORE_PINT32 ("store_pint32", "int"),
     203                /**
     204                 * @uml.property  name="sTORE_SIZE"
     205                 * @uml.associationEnd 
     206                 */
    164207                STORE_SIZE ("store_size", "int"),
     208                /**
     209                 * @uml.property  name="sTORE_DIR"
     210                 * @uml.associationEnd 
     211                 */
    165212                STORE_DIR ("store_dir", "path"),
     213                /**
     214                 * @uml.property  name="sTORE_PASSWORD"
     215                 * @uml.associationEnd 
     216                 */
    166217                STORE_PASSWORD ("store_password", "Password"),
     218                /**
     219                 * @uml.property  name="sTORE_TIME"
     220                 * @uml.associationEnd 
     221                 */
    167222                STORE_TIME ("store_time", "Date"),
     223                /**
     224                 * @uml.property  name="sTORE_ACL"
     225                 * @uml.associationEnd 
     226                 */
    168227                STORE_ACL ("store_acl", "Acl"),
     228                /**
     229                 * @uml.property  name="sTORE_RES"
     230                 * @uml.associationEnd 
     231                 */
    169232                STORE_RES ("store_res", "Resource");
    170233               
Note: See TracChangeset for help on using the changeset viewer.