restricting values for a string member variable
<p>A string variable in Java can take one of the three values type=start, type=data, type=end ..
what would be the best way to make sure it never gets set to any other value except start or data or end ??</p>
