1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.directory.api.dsmlv2; 21 22 23 /** 24 * This class store the Dsml grammar's constants. It is also used for debugging 25 * purpose. 26 * 27 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 28 */ 29 public enum Dsmlv2StatesEnum 30 { 31 /** The initial state of every grammar */ 32 INIT_GRAMMAR_STATE, 33 34 /** The ending state for every grammars */ 35 GRAMMAR_END, 36 37 //==================================================== 38 // <batchRequest> ... </batchRequest> 39 //==================================================== 40 /** The <batchRequest> tag */ 41 BATCHREQUEST_START_TAG, 42 43 BATCHREQUEST_LOOP, 44 45 /** The </batchRequest> tag */ 46 BATCHREQUEST_END_TAG, 47 48 //==================================================== 49 // <abandonRequest> ... </abandonRequest> 50 //==================================================== 51 /** The <abandonRequest> tag */ 52 ABANDON_REQUEST_START_TAG, 53 54 /** The <control> tag */ 55 ABANDON_REQUEST_CONTROL_START_TAG, 56 57 /** The </control> tag */ 58 ABANDON_REQUEST_CONTROL_END_TAG, 59 60 /** The <controlValue> tag */ 61 ABANDON_REQUEST_CONTROLVALUE_START_TAG, 62 63 /** The </controlValue> tag */ 64 ABANDON_REQUEST_CONTROLVALUE_END_TAG, 65 66 //==================================================== 67 // <addRequest> ... </addRequest> 68 //==================================================== 69 /** The <addRequest> tag */ 70 ADD_REQUEST_START_TAG, 71 72 /** The <control> tag */ 73 ADD_REQUEST_CONTROL_START_TAG, 74 75 /** The </control> tag */ 76 ADD_REQUEST_CONTROL_END_TAG, 77 78 /** The <controlValue> tag */ 79 ADD_REQUEST_CONTROLVALUE_START_TAG, 80 81 /** The </controlValue> tag */ 82 ADD_REQUEST_CONTROLVALUE_END_TAG, 83 84 /** The <attr> tag */ 85 ADD_REQUEST_ATTR_START_TAG, 86 87 /** The </attr> tag */ 88 ADD_REQUEST_ATTR_END_TAG, 89 90 /** The <value> tag */ 91 ADD_REQUEST_VALUE_START_TAG, 92 93 /** The </value> tag */ 94 ADD_REQUEST_VALUE_END_TAG, 95 96 //==================================================== 97 // <authRequest> ... </authRequest> 98 //==================================================== 99 /** The <authRequest> tag */ 100 AUTH_REQUEST_START_TAG, 101 102 /** The <control> tag */ 103 AUTH_REQUEST_CONTROL_START_TAG, 104 105 /** The </control> tag */ 106 AUTH_REQUEST_CONTROL_END_TAG, 107 108 /** The <controlValue> tag */ 109 AUTH_REQUEST_CONTROLVALUE_START_TAG, 110 111 /** The </controlValue> tag */ 112 AUTH_REQUEST_CONTROLVALUE_END_TAG, 113 114 //==================================================== 115 // <compareRequest> ... </compareRequest> 116 //==================================================== 117 /** The <compareRequest> tag */ 118 COMPARE_REQUEST_START_TAG, 119 120 /** The <control> tag */ 121 COMPARE_REQUEST_CONTROL_START_TAG, 122 123 /** The </control> tag */ 124 COMPARE_REQUEST_CONTROL_END_TAG, 125 126 /** The <controlValue> tag */ 127 COMPARE_REQUEST_CONTROLVALUE_START_TAG, 128 129 /** The </controlValue> tag */ 130 COMPARE_REQUEST_CONTROLVALUE_END_TAG, 131 132 /** The <assertion> tag */ 133 COMPARE_REQUEST_ASSERTION_START_TAG, 134 135 /** The </assertion> tag */ 136 COMPARE_REQUEST_ASSERTION_END_TAG, 137 138 /** The <value> tag */ 139 COMPARE_REQUEST_VALUE_START_TAG, 140 141 /** The </value> tag */ 142 COMPARE_REQUEST_VALUE_END_TAG, 143 144 //==================================================== 145 // <delRequest> ... </delRequest> 146 //==================================================== 147 /** The <delRequest> tag */ 148 DEL_REQUEST_START_TAG, 149 150 /** The <control> tag */ 151 DEL_REQUEST_CONTROL_START_TAG, 152 153 /** The </control> tag */ 154 DEL_REQUEST_CONTROL_END_TAG, 155 156 /** The <controlValue> tag */ 157 DEL_REQUEST_CONTROLVALUE_START_TAG, 158 159 /** The </controlValue> tag */ 160 DEL_REQUEST_CONTROLVALUE_END_TAG, 161 162 //==================================================== 163 // <extendedRequest> ... </extendedRequest> 164 //==================================================== 165 /** The <extendedRequest> tag */ 166 EXTENDED_REQUEST_START_TAG, 167 168 /** The <control> tag */ 169 EXTENDED_REQUEST_CONTROL_START_TAG, 170 171 /** The </control> tag */ 172 EXTENDED_REQUEST_CONTROL_END_TAG, 173 174 /** The <controlValue> tag */ 175 EXTENDED_REQUEST_CONTROLVALUE_START_TAG, 176 177 /** The </controlValue> tag */ 178 EXTENDED_REQUEST_CONTROLVALUE_END_TAG, 179 180 /** The <requestName> tag */ 181 EXTENDED_REQUEST_REQUESTNAME_START_TAG, 182 183 /** The </requestName> tag */ 184 EXTENDED_REQUEST_REQUESTNAME_END_TAG, 185 186 /** The <requestValue> tag */ 187 EXTENDED_REQUEST_REQUESTVALUE_START_TAG, 188 189 /** The </requestValue> tag */ 190 EXTENDED_REQUEST_REQUESTVALUE_END_TAG, 191 192 //==================================================== 193 // <modDNRequest> ... </modDNRequest> 194 //==================================================== 195 /** The <modDNRequest> tag */ 196 MODIFY_DN_REQUEST_START_TAG, 197 198 /** The <control> tag */ 199 MODIFY_DN_REQUEST_CONTROL_START_TAG, 200 201 /** The </control> tag */ 202 MODIFY_DN_REQUEST_CONTROL_END_TAG, 203 204 /** The <controlValue> tag */ 205 MODIFY_DN_REQUEST_CONTROLVALUE_START_TAG, 206 207 /** The </controlValue> tag */ 208 MODIFY_DN_REQUEST_CONTROLVALUE_END_TAG, 209 210 //==================================================== 211 // <modifyRequest> ... </modifyRequest> 212 //==================================================== 213 /** The <modifyRequest> tag */ 214 MODIFY_REQUEST_START_TAG, 215 216 /** The <control> tag */ 217 MODIFY_REQUEST_CONTROL_START_TAG, 218 219 /** The </control> tag */ 220 MODIFY_REQUEST_CONTROL_END_TAG, 221 222 /** The <controlValue> tag */ 223 MODIFY_REQUEST_CONTROLVALUE_START_TAG, 224 225 /** The </controlValue> tag */ 226 MODIFY_REQUEST_CONTROLVALUE_END_TAG, 227 228 /** The <modification> tag */ 229 MODIFY_REQUEST_MODIFICATION_START_TAG, 230 231 /** The </modification> tag */ 232 MODIFY_REQUEST_MODIFICATION_END_TAG, 233 234 /** The <value> tag */ 235 MODIFY_REQUEST_VALUE_START_TAG, 236 237 /** The </value> tag */ 238 MODIFY_REQUEST_VALUE_END_TAG, 239 240 //==================================================== 241 // <searchRequest> ... </searchRequest> 242 //==================================================== 243 /** The <searchRequest> tag */ 244 SEARCH_REQUEST_START_TAG, 245 246 /** The <control> tag */ 247 SEARCH_REQUEST_CONTROL_START_TAG, 248 249 /** The </control> tag */ 250 SEARCH_REQUEST_CONTROL_END_TAG, 251 252 /** The <controlValue> tag */ 253 SEARCH_REQUEST_CONTROLVALUE_START_TAG, 254 255 /** The </controlValue> tag */ 256 SEARCH_REQUEST_CONTROLVALUE_END_TAG, 257 258 /** The <filter> tag */ 259 SEARCH_REQUEST_FILTER_START_TAG, 260 261 /** The </filter> tag */ 262 SEARCH_REQUEST_FILTER_END_TAG, 263 264 /** The <attributes> tag */ 265 SEARCH_REQUEST_ATTRIBUTES_START_TAG, 266 267 /** The </attributes> tag */ 268 SEARCH_REQUEST_ATTRIBUTES_END_TAG, 269 270 /** The <attribute> tag */ 271 SEARCH_REQUEST_ATTRIBUTE_START_TAG, 272 273 /** The </attribute> tag */ 274 SEARCH_REQUEST_ATTRIBUTE_END_TAG, 275 276 /** The <equalityMatch> tag */ 277 SEARCH_REQUEST_EQUALITYMATCH_START_TAG, 278 279 /** The <subStrings> tag */ 280 SEARCH_REQUEST_SUBSTRINGS_START_TAG, 281 282 /** The </subStrings> tag */ 283 SEARCH_REQUEST_SUBSTRINGS_END_TAG, 284 285 /** The <greaterOrEqual> tag */ 286 SEARCH_REQUEST_GREATEROREQUAL_START_TAG, 287 288 /** The <lessOrEqual> tag */ 289 SEARCH_REQUEST_LESSOREQUAL_START_TAG, 290 291 /** The <present> tag */ 292 SEARCH_REQUEST_PRESENT_START_TAG, 293 294 /** The <approxMatch> tag */ 295 SEARCH_REQUEST_APPROXMATCH_START_TAG, 296 297 /** The <extensibleMatch> tag */ 298 SEARCH_REQUEST_EXTENSIBLEMATCH_START_TAG, 299 300 /** The <value> tag */ 301 SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_START_TAG, 302 303 /** The </value> tag */ 304 SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_END_TAG, 305 306 /** The <initial> tag */ 307 SEARCH_REQUEST_INITIAL_START_TAG, 308 309 /** The </initial> tag */ 310 SEARCH_REQUEST_INITIAL_END_TAG, 311 312 /** The <any> tag */ 313 SEARCH_REQUEST_ANY_START_TAG, 314 315 /** The </any> tag */ 316 SEARCH_REQUEST_ANY_END_TAG, 317 318 /** The <final> tag */ 319 SEARCH_REQUEST_FINAL_START_TAG, 320 321 /** The </final> tag */ 322 SEARCH_REQUEST_FINAL_END_TAG, 323 324 /** The <value> tag */ 325 SEARCH_REQUEST_VALUE_START_TAG, 326 327 /** The </value> tag */ 328 SEARCH_REQUEST_VALUE_END_TAG, 329 330 /** The Filter Loop state */ 331 SEARCH_REQUEST_FILTER_LOOP, 332 333 //**************** 334 // DSML Response 335 //**************** 336 337 /** The Batch Response Loop state */ 338 BATCH_RESPONSE_LOOP, 339 340 /** The Error Response Loop state */ 341 ERROR_RESPONSE, 342 343 /** The Message Start state */ 344 MESSAGE_START, 345 346 /** The Message End state */ 347 MESSAGE_END, 348 349 /** The Detail Start state */ 350 DETAIL_START, 351 352 /** The Detail End state */ 353 DETAIL_END, 354 355 /** The Extended Response state */ 356 EXTENDED_RESPONSE, 357 358 /** The Extended Response Control Start state */ 359 EXTENDED_RESPONSE_CONTROL_START, 360 361 /** The Extended Response Control End state */ 362 EXTENDED_RESPONSE_CONTROL_END, 363 364 /** The Extended Response Control Value Start state */ 365 EXTENDED_RESPONSE_CONTROL_VALUE_START, 366 367 /** The Extended Response Control Value End state */ 368 EXTENDED_RESPONSE_CONTROL_VALUE_END, 369 370 /** The Extended Response Result Code Start state */ 371 EXTENDED_RESPONSE_RESULT_CODE_START, 372 373 /** The Extended Response Result Code End state */ 374 EXTENDED_RESPONSE_RESULT_CODE_END, 375 376 /** The Extended Response Error Message Start state */ 377 EXTENDED_RESPONSE_ERROR_MESSAGE_START, 378 379 /** The Extended Response Error Message End state */ 380 EXTENDED_RESPONSE_ERROR_MESSAGE_END, 381 382 /** The Extended Response Referral Start state */ 383 EXTENDED_RESPONSE_REFERRAL_START, 384 385 /** The Extended Response Referral End state */ 386 EXTENDED_RESPONSE_REFERRAL_END, 387 388 /** The Response Name Start state */ 389 RESPONSE_NAME_START, 390 391 /** The Response Name End state */ 392 RESPONSE_NAME_END, 393 394 /** The Response Start state */ 395 RESPONSE_START, 396 397 /** The Response End state */ 398 RESPONSE_END, 399 400 /** The LDAP Result state */ 401 LDAP_RESULT, 402 403 /** The LDAP Result Control Start state */ 404 LDAP_RESULT_CONTROL_START, 405 406 /** The LDAP Result Control End state */ 407 LDAP_RESULT_CONTROL_END, 408 409 /** The LDAP Result Control Value Start state */ 410 LDAP_RESULT_CONTROL_VALUE_START, 411 412 /** The LDAP Result Control Value End state */ 413 LDAP_RESULT_CONTROL_VALUE_END, 414 415 /** The LDAP Result Result Code Start state */ 416 LDAP_RESULT_RESULT_CODE_START, 417 418 /** The LDAP Result Result Code End state */ 419 LDAP_RESULT_RESULT_CODE_END, 420 421 /** The LDAP Result Error Message Start state */ 422 LDAP_RESULT_ERROR_MESSAGE_START, 423 424 /** The LDAP Result Error Message End state */ 425 LDAP_RESULT_ERROR_MESSAGE_END, 426 427 /** The LDAP Result Referral Start state */ 428 LDAP_RESULT_REFERRAL_START, 429 430 /** The LDAP Result Referral End state */ 431 LDAP_RESULT_REFERRAL_END, 432 433 /** The LDAP Result End state */ 434 LDAP_RESULT_END, 435 436 /** The Search Response state */ 437 SEARCH_RESPONSE, 438 439 /** The Search Result Entry state */ 440 SEARCH_RESULT_ENTRY, 441 442 /** The Search Result Entry Control Start state */ 443 SEARCH_RESULT_ENTRY_CONTROL_START, 444 445 /** The Search Result Entry Control End state */ 446 SEARCH_RESULT_ENTRY_CONTROL_END, 447 448 /** The Search Result Entry Control Value Start state */ 449 SEARCH_RESULT_ENTRY_CONTROL_VALUE_START, 450 451 /** The Search Result Entry Control Value End state */ 452 SEARCH_RESULT_ENTRY_CONTROL_VALUE_END, 453 454 /** The Search Result Entry Attr Start state */ 455 SEARCH_RESULT_ENTRY_ATTR_START, 456 457 /** The Search Result Entry Attr End state */ 458 SEARCH_RESULT_ENTRY_ATTR_END, 459 460 /** The Search Result Entry Value Start state */ 461 SEARCH_RESULT_ENTRY_VALUE_START, 462 463 /** The Search Result Entry Value End state */ 464 SEARCH_RESULT_ENTRY_VALUE_END, 465 466 /** The Search Result Entry Loop state */ 467 SEARCH_RESULT_ENTRY_LOOP, 468 469 /** The Search Result Reference state */ 470 SEARCH_RESULT_REFERENCE, 471 472 /** The Search Result Reference Control Start state */ 473 SEARCH_RESULT_REFERENCE_CONTROL_START, 474 475 /** The Search Result Reference Control End state */ 476 SEARCH_RESULT_REFERENCE_CONTROL_END, 477 478 /** The Search Result Reference Control Value Start state */ 479 SEARCH_RESULT_REFERENCE_CONTROL_VALUE_START, 480 481 /** The Search Result Reference Control Value End state */ 482 SEARCH_RESULT_REFERENCE_CONTROL_VALUE_END, 483 484 /** The Search Result Reference Ref Start state */ 485 SEARCH_RESULT_REFERENCE_REF_START, 486 487 /** The Search Result Reference Ref End state */ 488 SEARCH_RESULT_REFERENCE_REF_END, 489 490 /** The Search Result Reference Loop state */ 491 SEARCH_RESULT_REFERENCE_LOOP, 492 493 /** The soap envelop start state */ 494 SOAP_ENVELOPE_START_TAG, 495 496 /** The soap envelop end state */ 497 SOAP_ENVELOPE_END_TAG, 498 499 /** The soap header start state */ 500 SOAP_HEADER_START_TAG, 501 502 /** The soap header end state */ 503 SOAP_HEADER_END_TAG, 504 505 /** The soap body start state */ 506 SOAP_BODY_START_TAG, 507 508 /** The soap body end state */ 509 SOAP_BODY_END_TAG, 510 511 /** The Search Result Done End state */ 512 SEARCH_RESULT_DONE_END 513 }