|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
   package org.kuali.rice.core;  | 
  |  17 |     | 
     | 
  |  18 |     | 
   import java.util.Arrays;  | 
  |  19 |     | 
   import java.util.Collection;  | 
  |  20 |     | 
   import java.util.Collections;  | 
  |  21 |     | 
     | 
  |  22 |     | 
     | 
  |  23 |     | 
     | 
  |  24 |     | 
     | 
  |  25 |     | 
     | 
  |  26 |     | 
     | 
  |  27 |     | 
     | 
  |  28 |    0 |    public enum LogicalOperator { | 
  |  29 |    0 |            AND("&&"), | 
  |  30 |    0 |            OR("|"), | 
  |  31 |    0 |            NOT("!"), | 
  |  32 |    0 |            BETWEEN(".."), | 
  |  33 |    0 |            NULL("NULL"),  | 
  |  34 |    0 |            LIKE_ONE("?"), | 
  |  35 |    0 |            LIKE_MANY("*"), | 
  |  36 |    0 |            LIKE_MANY_P("%"), | 
  |  37 |    0 |            GREATER_THAN(">"), | 
  |  38 |    0 |            LESS_THAN("<"), | 
  |  39 |    0 |            EQUAL("="), | 
  |  40 |    0 |            GREATER_THAN_EQUAL(">="), | 
  |  41 |    0 |            LESS_THAN_EQUAL("<="); | 
  |  42 |     | 
             | 
  |  43 |     | 
           private final String op;  | 
  |  44 |    0 |            private LogicalOperator(String op) { | 
  |  45 |    0 |                    this.op = op;  | 
  |  46 |    0 |            }  | 
  |  47 |     | 
             | 
  |  48 |    0 |            public static final Collection<LogicalOperator> QUERY_CHARACTERS =  | 
  |  49 |     | 
                   Collections.unmodifiableCollection(Arrays.asList(LIKE_MANY, LIKE_ONE, LIKE_MANY_P, GREATER_THAN, LESS_THAN, BETWEEN, OR, NOT, EQUAL));  | 
  |  50 |     | 
             | 
  |  51 |    0 |            public static final Collection<LogicalOperator> RANGE_CHARACTERS =  | 
  |  52 |     | 
                   Collections.unmodifiableCollection(Arrays.asList(GREATER_THAN_EQUAL, LESS_THAN_EQUAL, GREATER_THAN, LESS_THAN, BETWEEN));  | 
  |  53 |     | 
             | 
  |  54 |     | 
           public String op() { | 
  |  55 |    0 |                    return op;  | 
  |  56 |     | 
           }  | 
  |  57 |     | 
             | 
  |  58 |     | 
           @Override  | 
  |  59 |     | 
           public String toString() { | 
  |  60 |    0 |                    return op;  | 
  |  61 |     | 
           }  | 
  |  62 |     | 
   }  |