1 19 20 package org.netbeans.modules.schema2beans; 21 22 23 24 27 public class DDLogFlags extends Object 28 { 29 public String dbgNames[]; 30 public Object actionSets[]; 31 32 public static final int DBG_DTD = 12; 34 35 public static final int DBG_BLD = 13; 37 38 public static final int DBG_EVT = 14; 40 41 public static final int DBG_UBN = 15; 43 44 public static final int DBG_REG = 16; 46 47 50 public static final int MAX_DBG_GROUP = 16; 51 52 53 57 public static boolean debug = false; 58 public static void setDebug(boolean d) {debug = d;} 59 static { 60 String externalDebug = System.getProperty("schema2beans.debug"); 62 if (externalDebug != null) { 63 debug = true; 64 } 65 } 66 67 68 public static final int FINDNODE = 1; 72 public static final int GETTEXT = 2; 73 public static final int SETTEXT = 3; 74 public static final int GETIDXTEXT = 4; 75 public static final int SETIDXTEXT = 5; 76 public static final int DDCREATE = 6; 77 public static final int DDCREATED = 7; 78 public static final int DDBEANED = 8; 79 public static final int FOUNDNODE = 9; 80 public static final int BOUNDNODE = 10; 81 public static final int NONODE = 11; 82 public static final int NOTELT = 12; 83 public static final int BINDPROP = 13; 84 public static final int EXCEEDED = 14; 85 public static final int SETVALUE = 15; 86 public static final int NEWBIND = 16; 87 public static final int SYNCNODES = 17; 88 public static final int CACHING = 18; 89 public static final int SYNCING = 19; 90 public static final int DELETENODE = 20; 91 public static final int BEANCOMP = 21; 92 public static final int PROPCOMP = 22; 93 public static final int CREATEATTR = 23; 94 public static final int GETATTR = 24; 95 96 static final String [] bldActionNames = { 101 "FINDNODE ", 102 "GETTEXT ", 103 "SETTEXT ", 104 "GETIDXTEXT ", 105 "SETIDXTEXT ", 106 "DDCREATE ", 107 "DDCREATED ", 108 "DDBEANED ", 109 "FOUNDNODE ", 110 "BOUNDNODE ", 111 "NONODE ", 112 "NOTELT ", 113 "BINDPROP ", 114 "EXCEEDED ", 115 "SETVALUE ", 116 "NEWBIND ", 117 "SYNCNODES ", 118 "CACHING ", 119 "SYNCING ", 120 "DELETENODE ", 121 "BEANCOMP ", 122 "PROPCOMP ", 123 "CREATEATTR ", 124 "GETATTR " 125 }; 127 128 public static final int STARTDOC = 1; 132 public static final int ENDDOC = 2; 133 public static final int STARTELT = 3; 134 public static final int ENDELT = 4; 135 public static final int ELEMENT = 5; 136 public static final int STARTGRP = 6; 137 public static final int ENDGRP = 7; 138 139 static final String [] dtdActionNames = { 144 "STARTDOC ", 145 "ENDDOC ", 146 "STARTELT ", 147 "ENDELT ", 148 "ELEMENT ", 149 "STARTGRP ", 150 "ENDGRP " 151 }; 153 public static final int CREATECHG = 1; 157 public static final int CREATEREM = 2; 158 public static final int NOTIFYCHG = 3; 159 public static final int NOTIFYREM = 4; 160 public static final int VETOABLE = 5; 161 public static final int NOTIFYVETO = 6; 162 163 164 static final String [] evtActionNames = { 169 "CREATECHG ", 170 "CREATEREM ", 171 "NOTIFYCHG ", 172 "NOTIFYREM ", 173 "VETOABLE ", 174 "NOTIFYVETO " 175 }; 177 178 public static final int MERGE = 1; 182 public static final int MERGEPROP = 2; 183 public static final int MERGEFOUND = 3; 184 public static final int MERGENTFND = 4; 185 public static final int EQUALS = 5; 186 public static final int FIND = 6; 187 public static final int FINDATTR = 7; 188 public static final int FINDCMP = 8; 189 public static final int FNDATTR = 9; 190 public static final int FINDPROP = 10; 191 public static final int FNDPROP = 11; 192 193 194 static final String [] ubnActionNames = { 199 "MERGE ", 200 "MERGEPROP ", 201 "MERGEFOUND ", 202 "MERGENTFND ", 203 "EQUALS ", 204 "FIND ", 205 "FINDATTR ", 206 "FINDCMP ", 207 "FNDATTR ", 208 "FINDPROP ", 209 "FNDPROP " 210 }; 213 214 218 public static final int ADDTYPE = 1; 219 220 221 static final String [] regActionNames = { 226 "ADDTYPE ", 227 }; 230 231 232 public DDLogFlags() { 234 super(); 235 dbgNames = new String [TraceLogger.MAXGROUP]; 236 dbgNames[DBG_DTD - 1] = "dtd"; 237 dbgNames[DBG_BLD - 1] = "ibn"; 238 dbgNames[DBG_EVT - 1] = "evt"; 239 dbgNames[DBG_UBN - 1] = "ubn"; 240 dbgNames[DBG_REG - 1] = "reg"; 241 242 actionSets = new Object [TraceLogger.MAXGROUP]; 243 actionSets[DBG_DTD - 1] = dtdActionNames; 244 actionSets[DBG_BLD - 1] = bldActionNames; 245 actionSets[DBG_EVT - 1] = evtActionNames; 246 actionSets[DBG_UBN - 1] = ubnActionNames; 247 actionSets[DBG_REG - 1] = regActionNames; 248 } } 250 | Popular Tags |