protected void extractPlan( Matcher matcher )
{
Integer initialTest = Integer.parseInt( matcher.group(1) );
Integer lastTest = Integer.parseInt( matcher.group(3) );
Plan plan = null;
plan = new Plan( initialTest, lastTest );
String skipToken = matcher.group(4);
if ( skipToken != null )
{
String reason = matcher.group( 5 );
final SkipPlan skip = new SkipPlan( reason );
plan.setSkip(skip);
}
String commentToken = matcher.group( 6 );
if ( commentToken != null )
{
String text = matcher.group ( 7 );
final Comment comment = new Comment( text );
plan.setComment( comment );
}
this.plan = plan;
}