Refactored so that there can be an EWTS scanner and an ACIP scanner.

This commit is contained in:
dchandler 2005-02-21 05:37:01 +00:00
parent 7854e4fd93
commit 4c268c5ea2
6 changed files with 171 additions and 109 deletions

View file

@ -333,8 +333,8 @@ public class TibTextUtils implements THDLWylieConstants {
{
StringBuffer errors = new StringBuffer();
String warningLevel = withWarnings ? "All" : "None";
ArrayList al = ACIPTshegBarScanner.scan(acip, errors, 500, false,
warningLevel);
ArrayList al = ACIPTshegBarScanner.instance().scan(acip, errors, 500,
false, warningLevel);
if (null == al || errors.length() > 0) {
if (errors.length() > 0)
throw new InvalidACIPException(errors.toString());