Kind (int value) { switch (value) { case 1: return ERROR; case 2: return WARNING; case 3: return MANDATORY_WARNING; case 4: return NOTE; case 5: return OTHER; case 6: return STD_OUT; default: return null; } }