Generator Criterion for Measurability