}
else
{
endToken = token;
}
FrequencyUnitToken fractionToken = null;
if (fsm.equals(iv_EveryOtherHourMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_24/2);
else if (fsm.equals(iv_SixTimesADayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_SIX);
else if (fsm.equals(iv_FiveTimesADayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_FIVE);
else if (fsm.equals(iv_FourTimesADayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_FOUR);
else if (fsm.equals(iv_ThreeTimesADayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_THREE);
else if (fsm.equals(iv_HourlyMachine) || fsm.equals(iv_HourlySuffixMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_24);
else if (fsm.equals(iv_TwiceADayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_TWO);
else if (fsm.equals(iv_DailyMachine) || fsm.equals(iv_DailySuffixMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_ONE);
else if (fsm.equals(iv_EveryOtherDayMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_EVERY_OTHER_DAY);
else if (fsm.equals(iv_WeeklyMachine)|| fsm.equals(iv_WeeklySuffixMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_WEEKLY);
else if (fsm.equals(iv_MonthlySuffixMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_MONTHLY);
else if (fsm.equals(iv_YearlySuffixMachine))
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_YEARLY);
else
fractionToken = new FrequencyUnitToken(
startToken.getStartOffset(), endToken
.getEndOffset(), FrequencyUnitToken.QUANTITY_PRN);
fractionSet.add(fractionToken);
fsm.reset();