return outSet;
}
private Machine getConfirmSubSectionMachine() {
State startState = new NamedState("START");
State endState = new NamedState("END");
State medState = new NamedState("MED");
State tailState = new NamedState("TAIL");
State caseState = new NamedState("COLON");
State nonCaseState = new NamedState("NOCOLON");
State fslashState = new NamedState("FSLASH");
State orState = new NamedState("OR");
State altTailState = new NamedState("ALTTAIL");
State finishAltState = new NamedState("EXTREMITY");
State ntEndState = new NonTerminalEndState("NON TERMINAL END");
endState.setEndStateFlag(true);
ntEndState.setEndStateFlag(true);
Machine m = new Machine(startState);
Condition subFirstBegin = new TextSetCondition(iv_confirmedSubBeginSet,
false);
Condition subFirstNext = new TextSetCondition(iv_confirmedSubNextSet,
false);
Condition subFirstTail = new TextSetCondition(iv_confirmedSubTailSet,
false);
Condition altSubFirstBegin = new TextSetCondition(iv_confirmedSubBeginSet,
false);
Condition altSubFirstNext = new TextSetCondition(iv_confirmedSubNextSet,
false);
Condition altSubFirstTail = new TextSetCondition(iv_confirmedSubTailSet,
false);
Condition subSecondBegin = new TextSetCondition(iv_confirmedSpecialFirstSubSet,
false);
Condition subSecondNext = new TextSetCondition(iv_confirmedSpecialNextSubSet,
false);
startState.addTransition(subFirstBegin, medState);
startState.addTransition(new AnyCondition(), startState);
medState.addTransition(new PunctuationValueCondition(':'), endState);
medState.addTransition(subFirstNext, tailState);
medState.addTransition(new SymbolValueCondition('&'), tailState);
medState.addTransition(new PunctuationValueCondition('&'), tailState);
medState.addTransition(new AnyCondition(), startState);
tailState.addTransition(new PunctuationValueCondition(':'), endState);
tailState.addTransition(subFirstTail, caseState);
tailState.addTransition(new AnyCondition(), startState);
caseState.addTransition(new WordValueCondition("and", false), nonCaseState);
caseState.addTransition(new WordValueCondition("the", false), nonCaseState);
caseState.addTransition(new PunctuationValueCondition(':'), endState);
caseState.addTransition(new PunctuationValueCondition('-'), endState);
caseState.addTransition(new AnyCondition(), startState);
nonCaseState.addTransition(new PunctuationValueCondition('/'), fslashState);
nonCaseState.addTransition(altSubFirstBegin, altTailState);
nonCaseState.addTransition(new AnyCondition(), startState);
altTailState.addTransition(altSubFirstNext, finishAltState);
altTailState.addTransition(new AnyCondition(), startState);
finishAltState.addTransition(altSubFirstTail, endState);
finishAltState.addTransition(new AnyCondition(), startState);
fslashState.addTransition(new WordValueCondition("or", false), orState);
fslashState.addTransition(subSecondBegin, orState);
fslashState.addTransition(new AnyCondition(), startState);