private String getCompareTypeName ( final CompareType type ) { String compare = null ; switch ( type ) { case EQUAL : break ; case NOT_EQUAL : compare = "ne" ; break ; case LESS_THAN : compare = "lt" ; break ; case LESS_THAN_OR_EQUAL : compare = "le" ; break ; case GREATER_THAN : compare = "gt" ; break ; case GREATER_THAN_OR_EQUAL : compare = "ge" ; break ; case MATCH : compare = "rx" ; break ; default : throw new SystemException ( "Invalid compare type: " + type ) ; } return compare ; }
Helper method to determine the compare type name .