catch(DmcValueExceptionSet ex){
System.err.println(ex.toString() + "\nFile: " + ruledata.getFile() + " Line: " + ruledata.getLineNumber());
}
try{
DynamicInitIF rule = (DynamicInitIF) ruleDEF.newRuleInstance();
rule.setRuleData(ruledata);
allRuleData.add(ruledata);
// addThisRule((RuleIF) rule);
allRules.add((RuleIF) rule);
}
catch(Exception ex){
System.err.println(ex.toString());
}
}
}
}
DmcOmni.instance().reset();
schemas = sm.getSchemas();
while(schemas.hasNext()){
SchemaDefinition curr = schemas.next();
DmcOmni.instance().addCompactSchema(curr.getCompactSchema());
}
// We add the rules after we've reinitialized the DmcOmni so that we can resolve
// applyToClass information.
for(RuleIF rule: allRules)
addThisRule(rule);
DebugInfo.debug("*** ALL RULE COLLECTIONS ***\n\n" + this.toString());
// DebugInfo.debug("\n\n*** RULE TRACING DISABLED ***\n\n");
DmcOmni.instance().ruleTracer(new ConsoleRuleTracer());
DmcOmni.instance().ruleTracing(true);
for(RuleDataDMO rule: allRuleData){
SourceInfo source = new SourceInfo(rule.getFile(), rule.getLineNumber()+"", rule);
// if (rule.getRuleName().equals("dmtSvNumericRange")){
// DebugInfo.debug("HERE");
// }