001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 *
019 */
020
021 package org.apache.directory.shared.dsmlv2;
022
023
024 /**
025 * This class store the Dsml grammar's constants. It is also used for debugging
026 * purpose
027 *
028 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
029 * @version $Rev$, $Date$
030 */
031 public class Dsmlv2StatesEnum implements IStates
032 {
033 //====================================================
034 // <batchRequest> ... </batchRequest>
035 //====================================================
036 /** The <batchRequest> tag */
037 public static final int BATCHREQUEST_START_TAG = 104;
038
039 public static final int BATCHREQUEST_LOOP = 105;
040
041 /** The </batchRequest> tag */
042 public static final int BATCHREQUEST_END_TAG = 1;
043
044 //====================================================
045 // <abandonRequest> ... </abandonRequest>
046 //====================================================
047 /** The <abandonRequest> tag */
048 public static final int ABANDON_REQUEST_START_TAG = 2;
049
050 /** The <control> tag */
051 public static final int ABANDON_REQUEST_CONTROL_START_TAG = 4;
052
053 /** The </control> tag */
054 public static final int ABANDON_REQUEST_CONTROL_END_TAG = 5;
055
056 /** The <controlValue> tag */
057 public static final int ABANDON_REQUEST_CONTROLVALUE_START_TAG = 6;
058
059 /** The </controlValue> tag */
060 public static final int ABANDON_REQUEST_CONTROLVALUE_END_TAG = 7;
061
062 //====================================================
063 // <addRequest> ... </addRequest>
064 //====================================================
065 /** The <addRequest> tag */
066 public static final int ADD_REQUEST_START_TAG = 8;
067
068 /** The <control> tag */
069 public static final int ADD_REQUEST_CONTROL_START_TAG = 10;
070
071 /** The </control> tag */
072 public static final int ADD_REQUEST_CONTROL_END_TAG = 11;
073
074 /** The <controlValue> tag */
075 public static final int ADD_REQUEST_CONTROLVALUE_START_TAG = 12;
076
077 /** The </controlValue> tag */
078 public static final int ADD_REQUEST_CONTROLVALUE_END_TAG = 13;
079
080 /** The <attr> tag */
081 public static final int ADD_REQUEST_ATTR_START_TAG = 14;
082
083 /** The </attr> tag */
084 public static final int ADD_REQUEST_ATTR_END_TAG = 15;
085
086 /** The <value> tag */
087 public static final int ADD_REQUEST_VALUE_START_TAG = 16;
088
089 /** The </value> tag */
090 public static final int ADD_REQUEST_VALUE_END_TAG = 17;
091
092 //====================================================
093 // <authRequest> ... </authRequest>
094 //====================================================
095 /** The <authRequest> tag */
096 public static final int AUTH_REQUEST_START_TAG = 18;
097
098 /** The <control> tag */
099 public static final int AUTH_REQUEST_CONTROL_START_TAG = 20;
100
101 /** The </control> tag */
102 public static final int AUTH_REQUEST_CONTROL_END_TAG = 21;
103
104 /** The <controlValue> tag */
105 public static final int AUTH_REQUEST_CONTROLVALUE_START_TAG = 22;
106
107 /** The </controlValue> tag */
108 public static final int AUTH_REQUEST_CONTROLVALUE_END_TAG = 23;
109
110 //====================================================
111 // <compareRequest> ... </compareRequest>
112 //====================================================
113 /** The <compareRequest> tag */
114 public static final int COMPARE_REQUEST_START_TAG = 24;
115
116 /** The <control> tag */
117 public static final int COMPARE_REQUEST_CONTROL_START_TAG = 26;
118
119 /** The </control> tag */
120 public static final int COMPARE_REQUEST_CONTROL_END_TAG = 27;
121
122 /** The <controlValue> tag */
123 public static final int COMPARE_REQUEST_CONTROLVALUE_START_TAG = 28;
124
125 /** The </controlValue> tag */
126 public static final int COMPARE_REQUEST_CONTROLVALUE_END_TAG = 29;
127
128 /** The <assertion> tag */
129 public static final int COMPARE_REQUEST_ASSERTION_START_TAG = 30;
130
131 /** The </assertion> tag */
132 public static final int COMPARE_REQUEST_ASSERTION_END_TAG = 31;
133
134 /** The <value> tag */
135 public static final int COMPARE_REQUEST_VALUE_START_TAG = 32;
136
137 /** The </value> tag */
138 public static final int COMPARE_REQUEST_VALUE_END_TAG = 33;
139
140 //====================================================
141 // <delRequest> ... </delRequest>
142 //====================================================
143 /** The <delRequest> tag */
144 public static final int DEL_REQUEST_START_TAG = 34;
145
146 /** The <control> tag */
147 public static final int DEL_REQUEST_CONTROL_START_TAG = 36;
148
149 /** The </control> tag */
150 public static final int DEL_REQUEST_CONTROL_END_TAG = 37;
151
152 /** The <controlValue> tag */
153 public static final int DEL_REQUEST_CONTROLVALUE_START_TAG = 38;
154
155 /** The </controlValue> tag */
156 public static final int DEL_REQUEST_CONTROLVALUE_END_TAG = 39;
157
158 //====================================================
159 // <extendedRequest> ... </extendedRequest>
160 //====================================================
161 /** The <extendedRequest> tag */
162 public static final int EXTENDED_REQUEST_START_TAG = 40;
163
164 /** The <control> tag */
165 public static final int EXTENDED_REQUEST_CONTROL_START_TAG = 42;
166
167 /** The </control> tag */
168 public static final int EXTENDED_REQUEST_CONTROL_END_TAG = 43;
169
170 /** The <controlValue> tag */
171 public static final int EXTENDED_REQUEST_CONTROLVALUE_START_TAG = 44;
172
173 /** The </controlValue> tag */
174 public static final int EXTENDED_REQUEST_CONTROLVALUE_END_TAG = 45;
175
176 /** The <requestName> tag */
177 public static final int EXTENDED_REQUEST_REQUESTNAME_START_TAG = 46;
178
179 /** The </requestName> tag */
180 public static final int EXTENDED_REQUEST_REQUESTNAME_END_TAG = 47;
181
182 /** The <requestValue> tag */
183 public static final int EXTENDED_REQUEST_REQUESTVALUE_START_TAG = 48;
184
185 /** The </requestValue> tag */
186 public static final int EXTENDED_REQUEST_REQUESTVALUE_END_TAG = 49;
187
188 //====================================================
189 // <modDNRequest> ... </modDNRequest>
190 //====================================================
191 /** The <modDNRequest> tag */
192 public static final int MODIFY_DN_REQUEST_START_TAG = 50;
193
194 /** The <control> tag */
195 public static final int MODIFY_DN_REQUEST_CONTROL_START_TAG = 52;
196
197 /** The </control> tag */
198 public static final int MODIFY_DN_REQUEST_CONTROL_END_TAG = 53;
199
200 /** The <controlValue> tag */
201 public static final int MODIFY_DN_REQUEST_CONTROLVALUE_START_TAG = 54;
202
203 /** The </controlValue> tag */
204 public static final int MODIFY_DN_REQUEST_CONTROLVALUE_END_TAG = 55;
205
206 //====================================================
207 // <modifyRequest> ... </modifyRequest>
208 //====================================================
209 /** The <modifyRequest> tag */
210 public static final int MODIFY_REQUEST_START_TAG = 56;
211
212 /** The <control> tag */
213 public static final int MODIFY_REQUEST_CONTROL_START_TAG = 58;
214
215 /** The </control> tag */
216 public static final int MODIFY_REQUEST_CONTROL_END_TAG = 59;
217
218 /** The <controlValue> tag */
219 public static final int MODIFY_REQUEST_CONTROLVALUE_START_TAG = 60;
220
221 /** The </controlValue> tag */
222 public static final int MODIFY_REQUEST_CONTROLVALUE_END_TAG = 61;
223
224 /** The <modification> tag */
225 public static final int MODIFY_REQUEST_MODIFICATION_START_TAG = 62;
226
227 /** The </modification> tag */
228 public static final int MODIFY_REQUEST_MODIFICATION_END_TAG = 63;
229
230 /** The <value> tag */
231 public static final int MODIFY_REQUEST_VALUE_START_TAG = 64;
232
233 /** The </value> tag */
234 public static final int MODIFY_REQUEST_VALUE_END_TAG = 65;
235
236 //====================================================
237 // <searchRequest> ... </searchRequest>
238 //====================================================
239 /** The <searchRequest> tag */
240 public static final int SEARCH_REQUEST_START_TAG = 66;
241
242 /** The <control> tag */
243 public static final int SEARCH_REQUEST_CONTROL_START_TAG = 68;
244
245 /** The </control> tag */
246 public static final int SEARCH_REQUEST_CONTROL_END_TAG = 69;
247
248 /** The <controlValue> tag */
249 public static final int SEARCH_REQUEST_CONTROLVALUE_START_TAG = 70;
250
251 /** The </controlValue> tag */
252 public static final int SEARCH_REQUEST_CONTROLVALUE_END_TAG = 71;
253
254 /** The <filter> tag */
255 public static final int SEARCH_REQUEST_FILTER_START_TAG = 72;
256
257 /** The </filter> tag */
258 public static final int SEARCH_REQUEST_FILTER_END_TAG = 73;
259
260 /** The <attributes> tag */
261 public static final int SEARCH_REQUEST_ATTRIBUTES_START_TAG = 74;
262
263 /** The </attributes> tag */
264 public static final int SEARCH_REQUEST_ATTRIBUTES_END_TAG = 75;
265
266 /** The <attribute> tag */
267 public static final int SEARCH_REQUEST_ATTRIBUTE_START_TAG = 76;
268
269 /** The </attribute> tag */
270 public static final int SEARCH_REQUEST_ATTRIBUTE_END_TAG = 77;
271
272 /** The <equalityMatch> tag */
273 public static final int SEARCH_REQUEST_EQUALITYMATCH_START_TAG = 84;
274
275 /** The <subStrings> tag */
276 public static final int SEARCH_REQUEST_SUBSTRINGS_START_TAG = 86;
277
278 /** The </subStrings> tag */
279 public static final int SEARCH_REQUEST_SUBSTRINGS_END_TAG = 87;
280
281 /** The <greaterOrEqual> tag */
282 public static final int SEARCH_REQUEST_GREATEROREQUAL_START_TAG = 88;
283
284 /** The <lessOrEqual> tag */
285 public static final int SEARCH_REQUEST_LESSOREQUAL_START_TAG = 90;
286
287 /** The <present> tag */
288 public static final int SEARCH_REQUEST_PRESENT_START_TAG = 92;
289
290 /** The <approxMatch> tag */
291 public static final int SEARCH_REQUEST_APPROXMATCH_START_TAG = 94;
292
293 /** The <extensibleMatch> tag */
294 public static final int SEARCH_REQUEST_EXTENSIBLEMATCH_START_TAG = 96;
295
296 /** The <value> tag */
297 public static final int SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_START_TAG = 109;
298
299 /** The </value> tag */
300 public static final int SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_END_TAG = 110;
301
302 /** The <initial> tag */
303 public static final int SEARCH_REQUEST_INITIAL_START_TAG = 98;
304
305 /** The </initial> tag */
306 public static final int SEARCH_REQUEST_INITIAL_END_TAG = 99;
307
308 /** The <any> tag */
309 public static final int SEARCH_REQUEST_ANY_START_TAG = 100;
310
311 /** The </any> tag */
312 public static final int SEARCH_REQUEST_ANY_END_TAG = 101;
313
314 /** The <final> tag */
315 public static final int SEARCH_REQUEST_FINAL_START_TAG = 102;
316
317 /** The </final> tag */
318 public static final int SEARCH_REQUEST_FINAL_END_TAG = 103;
319
320 /** The <value> tag */
321 public static final int SEARCH_REQUEST_VALUE_START_TAG = 107;
322
323 /** The </value> tag */
324 public static final int SEARCH_REQUEST_VALUE_END_TAG = 108;
325
326 /** The Filter Loop state */
327 public static final int SEARCH_REQUEST_FILTER_LOOP = 106;
328
329 //****************
330 // DSML Response
331 //****************
332
333 /** The Batch Response Loop state */
334 public static final int BATCH_RESPONSE_LOOP = 200;
335
336 /** The Error Response Loop state */
337 public static final int ERROR_RESPONSE = 201;
338
339 /** The Message Start state */
340 public static final int MESSAGE_START = 202;
341
342 /** The Message End state */
343 public static final int MESSAGE_END = 203;
344
345 /** The Detail Start state */
346 public static final int DETAIL_START = 204;
347
348 /** The Detail End state */
349 public static final int DETAIL_END = 205;
350
351 /** The Extended Response state */
352 public static final int EXTENDED_RESPONSE = 206;
353
354 /** The Extended Response Control Start state */
355 public static final int EXTENDED_RESPONSE_CONTROL_START = 207;
356
357 /** The Extended Response Control End state */
358 public static final int EXTENDED_RESPONSE_CONTROL_END = 208;
359
360 /** The Extended Response Control Value Start state */
361 public static final int EXTENDED_RESPONSE_CONTROL_VALUE_START = 245;
362
363 /** The Extended Response Control Value End state */
364 public static final int EXTENDED_RESPONSE_CONTROL_VALUE_END = 246;
365
366 /** The Extended Response Result Code Start state */
367 public static final int EXTENDED_RESPONSE_RESULT_CODE_START = 209;
368
369 /** The Extended Response Result Code End state */
370 public static final int EXTENDED_RESPONSE_RESULT_CODE_END = 210;
371
372 /** The Extended Response Error Message Start state */
373 public static final int EXTENDED_RESPONSE_ERROR_MESSAGE_START = 211;
374
375 /** The Extended Response Error Message End state */
376 public static final int EXTENDED_RESPONSE_ERROR_MESSAGE_END = 212;
377
378 /** The Extended Response Referral Start state */
379 public static final int EXTENDED_RESPONSE_REFERRAL_START = 213;
380
381 /** The Extended Response Referral End state */
382 public static final int EXTENDED_RESPONSE_REFERRAL_END = 214;
383
384 /** The Response Name Start state */
385 public static final int RESPONSE_NAME_START = 215;
386
387 /** The Response Name End state */
388 public static final int RESPONSE_NAME_END = 216;
389
390 /** The Response Start state */
391 public static final int RESPONSE_START = 217;
392
393 /** The Response End state */
394 public static final int RESPONSE_END = 218;
395
396 /** The LDAP Result state */
397 public static final int LDAP_RESULT = 219;
398
399 /** The LDAP Result Control Start state */
400 public static final int LDAP_RESULT_CONTROL_START = 220;
401
402 /** The LDAP Result Control End state */
403 public static final int LDAP_RESULT_CONTROL_END = 221;
404
405 /** The LDAP Result Control Value Start state */
406 public static final int LDAP_RESULT_CONTROL_VALUE_START = 247;
407
408 /** The LDAP Result Control Value End state */
409 public static final int LDAP_RESULT_CONTROL_VALUE_END = 248;
410
411 /** The LDAP Result Result Code Start state */
412 public static final int LDAP_RESULT_RESULT_CODE_START = 222;
413
414 /** The LDAP Result Result Code End state */
415 public static final int LDAP_RESULT_RESULT_CODE_END = 223;
416
417 /** The LDAP Result Error Message Start state */
418 public static final int LDAP_RESULT_ERROR_MESSAGE_START = 224;
419
420 /** The LDAP Result Error Message End state */
421 public static final int LDAP_RESULT_ERROR_MESSAGE_END = 225;
422
423 /** The LDAP Result Referral Start state */
424 public static final int LDAP_RESULT_REFERRAL_START = 226;
425
426 /** The LDAP Result Referral End state */
427 public static final int LDAP_RESULT_REFERRAL_END = 227;
428
429 /** The LDAP Result End state */
430 public static final int LDAP_RESULT_END = 228;
431
432 /** The Search Response state */
433 public static final int SEARCH_RESPONSE = 229;
434
435 /** The Search Result Entry state */
436 public static final int SEARCH_RESULT_ENTRY = 230;
437
438 /** The Search Result Entry Control Start state */
439 public static final int SEARCH_RESULT_ENTRY_CONTROL_START = 231;
440
441 /** The Search Result Entry Control End state */
442 public static final int SEARCH_RESULT_ENTRY_CONTROL_END = 232;
443
444 /** The Search Result Entry Control Value Start state */
445 public static final int SEARCH_RESULT_ENTRY_CONTROL_VALUE_START = 249;
446
447 /** The Search Result Entry Control Value End state */
448 public static final int SEARCH_RESULT_ENTRY_CONTROL_VALUE_END = 250;
449
450 /** The Search Result Entry Attr Start state */
451 public static final int SEARCH_RESULT_ENTRY_ATTR_START = 233;
452
453 /** The Search Result Entry Attr End state */
454 public static final int SEARCH_RESULT_ENTRY_ATTR_END = 234;
455
456 /** The Search Result Entry Value Start state */
457 public static final int SEARCH_RESULT_ENTRY_VALUE_START = 235;
458
459 /** The Search Result Entry Value End state */
460 public static final int SEARCH_RESULT_ENTRY_VALUE_END = 236;
461
462 /** The Search Result Entry Loop state */
463 public static final int SEARCH_RESULT_ENTRY_LOOP = 237;
464
465 /** The Search Result Reference state */
466 public static final int SEARCH_RESULT_REFERENCE = 238;
467
468 /** The Search Result Reference Control Start state */
469 public static final int SEARCH_RESULT_REFERENCE_CONTROL_START = 239;
470
471 /** The Search Result Reference Control End state */
472 public static final int SEARCH_RESULT_REFERENCE_CONTROL_END = 240;
473
474 /** The Search Result Reference Control Value Start state */
475 public static final int SEARCH_RESULT_REFERENCE_CONTROL_VALUE_START = 251;
476
477 /** The Search Result Reference Control Value End state */
478 public static final int SEARCH_RESULT_REFERENCE_CONTROL_VALUE_END = 252;
479
480 /** The Search Result Reference Ref Start state */
481 public static final int SEARCH_RESULT_REFERENCE_REF_START = 241;
482
483 /** The Search Result Reference Ref End state */
484 public static final int SEARCH_RESULT_REFERENCE_REF_END = 242;
485
486 /** The Search Result Reference Loop state */
487 public static final int SEARCH_RESULT_REFERENCE_LOOP = 243;
488
489 /** The Search Result Done End state */
490 public static final int SEARCH_RESULT_DONE_END = 244;
491
492 /** The instance */
493 private static Dsmlv2StatesEnum instance = new Dsmlv2StatesEnum();
494
495
496 private Dsmlv2StatesEnum()
497 {
498 }
499
500
501 /**
502 * Get an instance of this class
503 *
504 * @return An instance on this class
505 */
506 public static Dsmlv2StatesEnum getInstance()
507 {
508 return instance;
509 }
510
511
512 /** Get the current state for a specified grammar */
513 public String getState( int state )
514 {
515 switch ( state )
516 {
517 case BATCHREQUEST_START_TAG:
518 return "BATCHREQUEST_START_TAG";
519 case BATCHREQUEST_LOOP:
520 return "BATCHREQUEST_LOOP";
521 case BATCHREQUEST_END_TAG:
522 return "BATCHREQUEST_END_TAG";
523 case ABANDON_REQUEST_START_TAG:
524 return "ABANDON_REQUEST_START_TAG";
525 case ABANDON_REQUEST_CONTROL_START_TAG:
526 return "ABANDON_REQUEST_CONTROL_START_TAG";
527 case ABANDON_REQUEST_CONTROL_END_TAG:
528 return "ABANDON_REQUEST_CONTROL_END_TAG";
529 case ABANDON_REQUEST_CONTROLVALUE_START_TAG:
530 return "ABANDON_REQUEST_CONTROLVALUE_START_TAG";
531 case ABANDON_REQUEST_CONTROLVALUE_END_TAG:
532 return "ABANDON_REQUEST_CONTROLVALUE_END_TAG";
533 case ADD_REQUEST_START_TAG:
534 return "ADD_REQUEST_START_TAG";
535 case ADD_REQUEST_CONTROL_START_TAG:
536 return "ADD_REQUEST_CONTROL_START_TAG";
537 case ADD_REQUEST_CONTROL_END_TAG:
538 return "ADD_REQUEST_CONTROL_END_TAG";
539 case ADD_REQUEST_CONTROLVALUE_START_TAG:
540 return "ADD_REQUEST_CONTROLVALUE_START_TAG";
541 case ADD_REQUEST_CONTROLVALUE_END_TAG:
542 return "ADD_REQUEST_CONTROLVALUE_END_TAG";
543 case ADD_REQUEST_ATTR_START_TAG:
544 return "ADD_REQUEST_ATTR_START_TAG";
545 case ADD_REQUEST_ATTR_END_TAG:
546 return "ADD_REQUEST_ATTR_END_TAG";
547 case ADD_REQUEST_VALUE_START_TAG:
548 return "ADD_REQUEST_VALUE_START_TAG";
549 case ADD_REQUEST_VALUE_END_TAG:
550 return "ADD_REQUEST_VALUE_END_TAG";
551 case AUTH_REQUEST_START_TAG:
552 return "AUTH_REQUEST_START_TAG";
553 case AUTH_REQUEST_CONTROL_START_TAG:
554 return "AUTH_REQUEST_CONTROL_START_TAG";
555 case AUTH_REQUEST_CONTROL_END_TAG:
556 return "AUTH_REQUEST_CONTROL_END_TAG";
557 case AUTH_REQUEST_CONTROLVALUE_START_TAG:
558 return "AUTH_REQUEST_CONTROLVALUE_START_TAG";
559 case AUTH_REQUEST_CONTROLVALUE_END_TAG:
560 return "AUTH_REQUEST_CONTROLVALUE_END_TAG";
561 case COMPARE_REQUEST_START_TAG:
562 return "COMPARE_REQUEST_START_TAG";
563 case COMPARE_REQUEST_CONTROL_START_TAG:
564 return "COMPARE_REQUEST_CONTROL_START_TAG";
565 case COMPARE_REQUEST_CONTROL_END_TAG:
566 return "COMPARE_REQUEST_CONTROL_END_TAG";
567 case COMPARE_REQUEST_CONTROLVALUE_START_TAG:
568 return "COMPARE_REQUEST_CONTROLVALUE_START_TAG";
569 case COMPARE_REQUEST_CONTROLVALUE_END_TAG:
570 return "COMPARE_REQUEST_CONTROLVALUE_END_TAG";
571 case COMPARE_REQUEST_ASSERTION_START_TAG:
572 return "COMPARE_REQUEST_ASSERTION_START_TAG";
573 case COMPARE_REQUEST_ASSERTION_END_TAG:
574 return "COMPARE_REQUEST_ASSERTION_END_TAG";
575 case COMPARE_REQUEST_VALUE_START_TAG:
576 return "COMPARE_REQUEST_VALUE_START_TAG";
577 case COMPARE_REQUEST_VALUE_END_TAG:
578 return "COMPARE_REQUEST_VALUE_END_TAG";
579 case DEL_REQUEST_START_TAG:
580 return "DEL_REQUEST_START_TAG";
581 case DEL_REQUEST_CONTROL_START_TAG:
582 return "DEL_REQUEST_CONTROL_START_TAG";
583 case DEL_REQUEST_CONTROL_END_TAG:
584 return "DEL_REQUEST_CONTROL_END_TAG";
585 case DEL_REQUEST_CONTROLVALUE_START_TAG:
586 return "DEL_REQUEST_CONTROLVALUE_START_TAG";
587 case DEL_REQUEST_CONTROLVALUE_END_TAG:
588 return "DEL_REQUEST_CONTROLVALUE_END_TAG";
589 case EXTENDED_REQUEST_START_TAG:
590 return "EXTENDED_REQUEST_START_TAG";
591 case EXTENDED_REQUEST_CONTROL_START_TAG:
592 return "EXTENDED_REQUEST_CONTROL_START_TAG";
593 case EXTENDED_REQUEST_CONTROL_END_TAG:
594 return "EXTENDED_REQUEST_CONTROL_END_TAG";
595 case EXTENDED_REQUEST_CONTROLVALUE_START_TAG:
596 return "EXTENDED_REQUEST_CONTROLVALUE_START_TAG";
597 case EXTENDED_REQUEST_CONTROLVALUE_END_TAG:
598 return "EXTENDED_REQUEST_CONTROLVALUE_END_TAG";
599 case EXTENDED_REQUEST_REQUESTNAME_START_TAG:
600 return "EXTENDED_REQUEST_REQUESTNAME_START_TAG";
601 case EXTENDED_REQUEST_REQUESTNAME_END_TAG:
602 return "EXTENDED_REQUEST_REQUESTNAME_END_TAG";
603 case EXTENDED_REQUEST_REQUESTVALUE_START_TAG:
604 return "EXTENDED_REQUEST_REQUESTVALUE_START_TAG";
605 case EXTENDED_REQUEST_REQUESTVALUE_END_TAG:
606 return "EXTENDED_REQUEST_REQUESTVALUE_END_TAG";
607 case MODIFY_DN_REQUEST_START_TAG:
608 return "MODIFY_DN_REQUEST_START_TAG";
609 case MODIFY_DN_REQUEST_CONTROL_START_TAG:
610 return "MODIFY_DN_REQUEST_CONTROL_START_TAG";
611 case MODIFY_DN_REQUEST_CONTROL_END_TAG:
612 return "MODIFY_DN_REQUEST_CONTROL_END_TAG";
613 case MODIFY_DN_REQUEST_CONTROLVALUE_START_TAG:
614 return "MODIFY_DN_REQUEST_CONTROLVALUE_START_TAG";
615 case MODIFY_DN_REQUEST_CONTROLVALUE_END_TAG:
616 return "MODIFY_DN_REQUEST_CONTROLVALUE_END_TAG";
617 case MODIFY_REQUEST_START_TAG:
618 return "MODIFY_REQUEST_START_TAG";
619 case MODIFY_REQUEST_CONTROL_START_TAG:
620 return "MODIFY_REQUEST_CONTROL_START_TAG";
621 case MODIFY_REQUEST_CONTROL_END_TAG:
622 return "MODIFY_REQUEST_CONTROL_END_TAG";
623 case MODIFY_REQUEST_CONTROLVALUE_START_TAG:
624 return "MODIFY_REQUEST_CONTROLVALUE_START_TAG";
625 case MODIFY_REQUEST_CONTROLVALUE_END_TAG:
626 return "MODIFY_REQUEST_CONTROLVALUE_END_TAG";
627 case MODIFY_REQUEST_MODIFICATION_START_TAG:
628 return "MODIFY_REQUEST_MODIFICATION_START_TAG";
629 case MODIFY_REQUEST_MODIFICATION_END_TAG:
630 return "MODIFY_REQUEST_MODIFICATION_END_TAG";
631 case MODIFY_REQUEST_VALUE_START_TAG:
632 return "MODIFY_REQUEST_VALUE_START_TAG";
633 case MODIFY_REQUEST_VALUE_END_TAG:
634 return "MODIFY_REQUEST_VALUE_END_TAG";
635 case SEARCH_REQUEST_START_TAG:
636 return "SEARCH_REQUEST_START_TAG";
637 case SEARCH_REQUEST_CONTROL_START_TAG:
638 return "SEARCH_REQUEST_CONTROL_START_TAG";
639 case SEARCH_REQUEST_CONTROL_END_TAG:
640 return "SEARCH_REQUEST_CONTROL_END_TAG";
641 case SEARCH_REQUEST_CONTROLVALUE_START_TAG:
642 return "SEARCH_REQUEST_CONTROLVALUE_START_TAG";
643 case SEARCH_REQUEST_CONTROLVALUE_END_TAG:
644 return "SEARCH_REQUEST_CONTROLVALUE_END_TAG";
645 case SEARCH_REQUEST_FILTER_START_TAG:
646 return "SEARCH_REQUEST_FILTER_START_TAG";
647 case SEARCH_REQUEST_FILTER_END_TAG:
648 return "SEARCH_REQUEST_FILTER_END_TAG";
649 case SEARCH_REQUEST_ATTRIBUTES_START_TAG:
650 return "SEARCH_REQUEST_ATTRIBUTES_START_TAG";
651 case SEARCH_REQUEST_ATTRIBUTES_END_TAG:
652 return "SEARCH_REQUEST_ATTRIBUTES_END_TAG";
653 case SEARCH_REQUEST_ATTRIBUTE_START_TAG:
654 return "SEARCH_REQUEST_ATTRIBUTE_START_TAG";
655 case SEARCH_REQUEST_ATTRIBUTE_END_TAG:
656 return "SEARCH_REQUEST_ATTRIBUTE_END_TAG";
657 case SEARCH_REQUEST_EQUALITYMATCH_START_TAG:
658 return "SEARCH_REQUEST_EQUALITYMATCH_START_TAG";
659 case SEARCH_REQUEST_SUBSTRINGS_START_TAG:
660 return "SEARCH_REQUEST_SUBSTRINGS_START_TAG";
661 case SEARCH_REQUEST_SUBSTRINGS_END_TAG:
662 return "SEARCH_REQUEST_SUBSTRINGS_END_TAG";
663 case SEARCH_REQUEST_GREATEROREQUAL_START_TAG:
664 return "SEARCH_REQUEST_GREATEROREQUAL_START_TAG";
665 case SEARCH_REQUEST_LESSOREQUAL_START_TAG:
666 return "SEARCH_REQUEST_LESSOREQUAL_START_TAG";
667 case SEARCH_REQUEST_PRESENT_START_TAG:
668 return "SEARCH_REQUEST_PRESENT_START_TAG";
669 case SEARCH_REQUEST_APPROXMATCH_START_TAG:
670 return "SEARCH_REQUEST_APPROXMATCH_START_TAG";
671 case SEARCH_REQUEST_EXTENSIBLEMATCH_START_TAG:
672 return "SEARCH_REQUEST_EXTENSIBLEMATCH_START_TAG";
673 case SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_START_TAG:
674 return "SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_START_TAG";
675 case SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_END_TAG:
676 return "SEARCH_REQUEST_EXTENSIBLEMATCH_VALUE_END_TAG";
677 case SEARCH_REQUEST_INITIAL_START_TAG:
678 return "SEARCH_REQUEST_INITIAL_START_TAG";
679 case SEARCH_REQUEST_INITIAL_END_TAG:
680 return "SEARCH_REQUEST_INITIAL_END_TAG";
681 case SEARCH_REQUEST_ANY_START_TAG:
682 return "SEARCH_REQUEST_ANY_START_TAG";
683 case SEARCH_REQUEST_ANY_END_TAG:
684 return "SEARCH_REQUEST_ANY_END_TAG";
685 case SEARCH_REQUEST_FINAL_START_TAG:
686 return "SEARCH_REQUEST_FINAL_START_TAG";
687 case SEARCH_REQUEST_FINAL_END_TAG:
688 return "SEARCH_REQUEST_FINAL_END_TAG";
689 case SEARCH_REQUEST_VALUE_START_TAG:
690 return "SEARCH_REQUEST_VALUE_START_TAG";
691 case SEARCH_REQUEST_VALUE_END_TAG:
692 return "SEARCH_REQUEST_VALUE_END_TAG";
693 case SEARCH_REQUEST_FILTER_LOOP:
694 return "SEARCH_REQUEST_FILTER_LOOP";
695
696 case BATCH_RESPONSE_LOOP:
697 return "BATCH_RESPONSE_LOOP";
698 case ERROR_RESPONSE:
699 return "ERROR_RESPONSE";
700 case MESSAGE_START:
701 return "MESSAGE_START";
702 case MESSAGE_END:
703 return "MESSAGE_END";
704 case DETAIL_START:
705 return "DETAIL_START";
706 case DETAIL_END:
707 return "DETAIL_END";
708 case EXTENDED_RESPONSE:
709 return "EXTENDED_RESPONSE";
710 case EXTENDED_RESPONSE_CONTROL_START:
711 return "EXTENDED_RESPONSE_CONTROL_START";
712 case EXTENDED_RESPONSE_CONTROL_END:
713 return "EXTENDED_RESPONSE_CONTROL_END";
714 case EXTENDED_RESPONSE_CONTROL_VALUE_START:
715 return "EXTENDED_RESPONSE_CONTROL_VALUE_START";
716 case EXTENDED_RESPONSE_CONTROL_VALUE_END:
717 return "EXTENDED_RESPONSE_CONTROL_VALUE_END";
718 case EXTENDED_RESPONSE_RESULT_CODE_START:
719 return "EXTENDED_RESPONSE_RESULT_CODE_START";
720 case EXTENDED_RESPONSE_RESULT_CODE_END:
721 return "EXTENDED_RESPONSE_RESULT_CODE_END";
722 case EXTENDED_RESPONSE_ERROR_MESSAGE_START:
723 return "EXTENDED_RESPONSE_ERROR_MESSAGE_START";
724 case EXTENDED_RESPONSE_ERROR_MESSAGE_END:
725 return "EXTENDED_RESPONSE_ERROR_MESSAGE_END";
726 case EXTENDED_RESPONSE_REFERRAL_START:
727 return "EXTENDED_RESPONSE_REFERRAL_START";
728 case EXTENDED_RESPONSE_REFERRAL_END:
729 return "EXTENDED_RESPONSE_REFERRAL_END";
730 case RESPONSE_NAME_START:
731 return "RESPONSE_NAME_START";
732 case RESPONSE_NAME_END:
733 return "RESPONSE_NAME_END";
734 case RESPONSE_START:
735 return "RESPONSE_START";
736 case RESPONSE_END:
737 return "RESPONSE_END";
738 case LDAP_RESULT:
739 return "LDAP_RESULT";
740 case LDAP_RESULT_CONTROL_START:
741 return "LDAP_RESULT_CONTROL_START";
742 case LDAP_RESULT_CONTROL_END:
743 return "LDAP_RESULT_CONTROL_END";
744 case LDAP_RESULT_CONTROL_VALUE_START:
745 return "LDAP_RESULT_CONTROL_VALUE_START";
746 case LDAP_RESULT_CONTROL_VALUE_END:
747 return "LDAP_RESULT_CONTROL_VALUE_END";
748 case LDAP_RESULT_RESULT_CODE_START:
749 return "LDAP_RESULT_RESULT_CODE_START";
750 case LDAP_RESULT_RESULT_CODE_END:
751 return "LDAP_RESULT_RESULT_CODE_END";
752 case LDAP_RESULT_ERROR_MESSAGE_START:
753 return "LDAP_RESULT_ERROR_MESSAGE_START";
754 case LDAP_RESULT_ERROR_MESSAGE_END:
755 return "LDAP_RESULT_ERROR_MESSAGE_END";
756 case LDAP_RESULT_REFERRAL_START:
757 return "LDAP_RESULT_REFERRAL_START";
758 case LDAP_RESULT_REFERRAL_END:
759 return "LDAP_RESULT_REFERRAL_END";
760 case LDAP_RESULT_END:
761 return "LDAP_RESULT_END";
762 case SEARCH_RESPONSE:
763 return "SEARCH_RESPONSE";
764 case SEARCH_RESULT_ENTRY:
765 return "SEARCH_RESULT_ENTRY";
766 case SEARCH_RESULT_ENTRY_CONTROL_START:
767 return "SEARCH_RESULT_ENTRY_CONTROL_START";
768 case SEARCH_RESULT_ENTRY_CONTROL_END:
769 return "SEARCH_RESULT_ENTRY_CONTROL_END";
770 case SEARCH_RESULT_ENTRY_CONTROL_VALUE_START:
771 return "SEARCH_RESULT_ENTRY_CONTROL_VALUE_START";
772 case SEARCH_RESULT_ENTRY_CONTROL_VALUE_END:
773 return "SEARCH_RESULT_ENTRY_CONTROL_VALUE_END";
774 case SEARCH_RESULT_ENTRY_ATTR_START:
775 return "SEARCH_RESULT_ENTRY_ATTR_START";
776 case SEARCH_RESULT_ENTRY_ATTR_END:
777 return "SEARCH_RESULT_ENTRY_ATTR_END";
778 case SEARCH_RESULT_ENTRY_VALUE_START:
779 return "SEARCH_RESULT_ENTRY_VALUE_START";
780 case SEARCH_RESULT_ENTRY_VALUE_END:
781 return "SEARCH_RESULT_ENTRY_VALUE_END";
782 case SEARCH_RESULT_ENTRY_LOOP:
783 return "SEARCH_RESULT_ENTRY_LOOP";
784 case SEARCH_RESULT_REFERENCE:
785 return "SEARCH_RESULT_REFERENCE";
786 case SEARCH_RESULT_REFERENCE_CONTROL_START:
787 return "SEARCH_RESULT_REFERENCE_CONTROL_START";
788 case SEARCH_RESULT_REFERENCE_CONTROL_END:
789 return "SEARCH_RESULT_REFERENCE_CONTROL_END";
790 case SEARCH_RESULT_REFERENCE_CONTROL_VALUE_START:
791 return "SEARCH_RESULT_REFERENCE_CONTROL_VALUE_START";
792 case SEARCH_RESULT_REFERENCE_CONTROL_VALUE_END:
793 return "SEARCH_RESULT_REFERENCE_CONTROL_VALUE_END";
794 case SEARCH_RESULT_REFERENCE_REF_START:
795 return "SEARCH_RESULT_REFERENCE_REF_START";
796 case SEARCH_RESULT_REFERENCE_REF_END:
797 return "SEARCH_RESULT_REFERENCE_REF_END";
798 case SEARCH_RESULT_REFERENCE_LOOP:
799 return "SEARCH_RESULT_REFERENCE_LOOP";
800 case SEARCH_RESULT_DONE_END:
801 return "SEARCH_RESULT_DONE_END";
802
803 default:
804 return "UNKNOWN";
805 }
806 }
807 }