def verifyQueryOperator( operator, fieldType )
      queryOperator = ""

      if @queryOperators.nil?
         @queryOperators = {}
         @queryOperatorFieldType = {}

         @queryOperators[ "CT" ]  =  [ "contains", "[]" ]
         @queryOperators[ "XCT" ] = [ "does not contain", "![]" ]

         @queryOperators[ "EX" ]  = [ "is", "==", "eq" ]
         @queryOperators[ "TV" ]  = [ "true value" ]
         @queryOperators[ "XEX" ] = [ "is not", "!=", "ne" ]

         @queryOperators[ "SW" ]  =  [ "starts with" ]
         @queryOperators[ "XSW" ] = [ "does not start with" ]

         @queryOperators[ "BF" ]  = [ "is before", "<" ]
         @queryOperators[ "OBF" ] = [ "is on or before", "<=" ]
         @queryOperators[ "AF" ]  = [ "is after", ">" ]
         @queryOperators[ "OAF" ] = [ "is on or after", ">=" ]

         @queryOperatorFieldType[ "BF" ] = [ "date" ]
         @queryOperatorFieldType[ "OBF" ] = [ "date" ]
         @queryOperatorFieldType[ "ABF" ] = [ "date" ]
         @queryOperatorFieldType[ "OAF" ] = [ "date" ]

         @queryOperators[ "LT" ]  = [ "is less than", "<" ]
         @queryOperators[ "LTE" ]  = [ "is less than or equal to", "<=" ]
         @queryOperators[ "GT" ]  = [ "is greater than", ">" ]
         @queryOperators[ "GTE" ]  = [ "is greater than or equal to", ">=" ]
      end

      upcaseOperator = operator.upcase
      @queryOperators.each { |queryop,aliases|
        if queryop == upcaseOperator
           if @queryOperatorFieldType[ queryop ] and @queryOperatorFieldType[ queryop ].include?( fieldType )
              queryOperator = upcaseOperator
              break
           else
              queryOperator = upcaseOperator
              break
           end
        else
          aliases.each  { |a|
            if a == upcaseOperator
               if @queryOperatorFieldType[ queryop ] and @queryOperatorFieldType[ queryop ].include?( fieldType )
                  queryOperator = queryop
                  break
               else
                  queryOperator = queryop
                  break
               end
            end
          }
        end
      }
      queryOperator
   end
def verifyQueryOperator( operator, fieldType )
      queryOperator = ""

      if @queryOperators.nil?
         @queryOperators = {}
         @queryOperatorFieldType = {}

         @queryOperators[ "CT" ]  =  [ "contains", "[]" ]
         @queryOperators[ "XCT" ] = [ "does not contain", "![]" ]

         @queryOperators[ "EX" ]  = [ "is", "==", "eq" ]
         @queryOperators[ "TV" ]  = [ "true value" ]
         @queryOperators[ "XEX" ] = [ "is not", "!=", "ne" ]

         @queryOperators[ "SW" ]  =  [ "starts with" ]
         @queryOperators[ "XSW" ] = [ "does not start with" ]

         @queryOperators[ "BF" ]  = [ "is before", "<" ]
         @queryOperators[ "OBF" ] = [ "is on or before", "<=" ]
         @queryOperators[ "AF" ]  = [ "is after", ">" ]
         @queryOperators[ "OAF" ] = [ "is on or after", ">=" ]

         @queryOperatorFieldType[ "BF" ] = [ "date" ]
         @queryOperatorFieldType[ "OBF" ] = [ "date" ]
         @queryOperatorFieldType[ "ABF" ] = [ "date" ]
         @queryOperatorFieldType[ "OAF" ] = [ "date" ]

         @queryOperators[ "LT" ]  = [ "is less than", "<" ]
         @queryOperators[ "LTE" ]  = [ "is less than or equal to", "<=" ]
         @queryOperators[ "GT" ]  = [ "is greater than", ">" ]
         @queryOperators[ "GTE" ]  = [ "is greater than or equal to", ">=" ]
      end

      upcaseOperator = operator.upcase
      @queryOperators.each { |queryop,aliases|
        if queryop == upcaseOperator
           if @queryOperatorFieldType[ queryop ] and @queryOperatorFieldType[ queryop ].include?( fieldType )
              queryOperator = upcaseOperator
              break
           else
              queryOperator = upcaseOperator
              break
           end
        else
          aliases.each  { |a|
            if a == upcaseOperator
               if @queryOperatorFieldType[ queryop ] and @queryOperatorFieldType[ queryop ].include?( fieldType )
                  queryOperator = queryop
                  break
               else
                  queryOperator = queryop
                  break
               end
            end
          }
        end
      }
      queryOperator
   end
Returns a valid query operator.