{
int index = pattern.indexOf ('*');
if (index != -1 && index != 0 && index != (pattern.length () - 1))
{
// '*' must be first char or last char
throw new InvalidStringException ("pattern may be an exact match or "
+ "start/end with \"*\"");
}
_pattern = pattern;
}