Convert a String into one of the three possible TriStateBool instances.
It does a case-insensitive string comparison:
"true" --> TRUE
"false" --> FALSE
anything-else --> UNDEFINED
if(StringUtils.ok(s))
{
s = s.toLowerCase();
if(s.equals("true"))
return TRUE;
if(s.equals("false"))
return FALSE;
}
return UNDEFINED;