return(rc);
}
public void loadAndCheckRules(SchemaManager sm, SchemaDefinition sd) throws DmcRuleExceptionSet {
DmcRuleExceptionSet rc = null;
DmoObjectFactory dmofactory = new DmoObjectFactory(sm);
ArrayList<RuleDataDMO> allRuleData = new ArrayList<RuleDataDMO>();
ArrayList<RuleIF> allRules = new ArrayList<RuleIF>();
Iterator<SchemaDefinition> schemas = sm.getSchemas();
if (schemas != null){
while(schemas.hasNext()){
SchemaDefinition curr = schemas.next();
Iterator<DmcUncheckedObject> ucoIT = curr.getParsedRules();
if (ucoIT != null){
while(ucoIT.hasNext()){
DmcUncheckedObject uco = ucoIT.next();
ClassDefinition ruleDataCD = sm.cdef(uco.getConstructionClass());
RuleDefinition ruleDEF = ruleDataCD.getRuleDefinition();
RuleDataDMO ruledata = null;
SourceInfo source = getSource(uco);
try{
ruledata = (RuleDataDMO) dmofactory.createObject(uco);
// DebugInfo.debug("Parsed and instantiated:\n\n" + ruledata.toOIF());
}
catch(ClassNotFoundException cnf){
// This may be thrown from TypeDefinition when trying to instantiate a
// holder for an attribute. This would likely result from not having