I would prefere a more formal approach - up you define several integers to show the state; could you use an enumerator instead of a String value? This would ease the usage. As if I want to use your method, I will have to cope with the integers - finding out about their meaning etc. If you however set and get an Enumerator for the value - usage becomes much clearer!