endState.setEndStateFlag(true);
Machine m = new Machine(startState);
Condition padDxC = new TextSetCondition(iv_padDxSet, false);
Condition padDxHyphenBeginC = new TextSetCondition(iv_padDxHyphenBeginSet, false);
Condition padDxHyphenEndC = new TextSetCondition(iv_padDxHyphenEndSet, false);
Condition pad1of2DxC = new TextSetCondition(iv_padOneOfTwoDxSet, false);
Condition pad2of2DxC = new TextSetCondition(iv_padTwoOfTwoDxSet, false);
Condition pad1of3DxC = new TextSetCondition(iv_padOneOfThreeDxSet, false);
Condition pad2of3DxC = new TextSetCondition(iv_padTwoOfThreeDxSet, false);
Condition pad3of3DxC = new TextSetCondition(iv_padThreeOfThreeDxSet, false);
Condition padNegConfirm1Of2DxC = new TextSetCondition(iv_padOneOfTwoNegConfirmDxSet, false);
Condition padNegConfirm2Of2DxC = new TextSetCondition(iv_padTwoOfTwoNegConfirmDxSet, false);
startState.addTransition(padDxC, endState);
startState.addTransition(padNegConfirm1Of2DxC, pad2of2NegConfirmState);
startState.addTransition(pad1of2DxC, pad2of2State);
startState.addTransition(pad1of3DxC, pad2of3State);