in tapestry-framework/src/org/apache/tapestry/util/LocalizedNameGenerator.java [73:118]
private void advance()
{
_prevState = _state;
while (_state != EXHAUSTED)
{
_state++;
switch (_state)
{
case LCV :
if (Tapestry.isBlank(_variant))
continue;
return;
case LC :
if (Tapestry.isBlank(_country))
continue;
return;
case LV :
// If _country is null, then we've already generated this string
// as state LCV and we can continue directly to state L
if (Tapestry.isBlank(_variant) || Tapestry.isBlank(_country))
continue;
return;
case L :
if (Tapestry.isBlank(_language))
continue;
return;
default :
return;
}
}
}