if (classDefs.get(objClass) != null) {
DebugInfo.debug("HAVE A RULE INSTANCE");
ruleInstances.add(obj);
return;
} else {
ResultException ex = new ResultException("No name for object: "
+ objClass);
ex.result.lastResult().lineNumber(obj.lineNumber);
throw (ex);
}
}
if (objClass.equals("TypeDefinition")) {
typeDefs.put(name, obj);
origOrderTypes.add(name);
} else if (objClass.equals("EnumDefinition")) {
enumDefs.put(name, obj);
origOrderEnums.add(name);
} else if (objClass.equals("AttributeDefinition")) {
attributeDefs.put(name, obj);
origOrderAttrs.add(name);
String designatedNameAttribute = obj
.getSV("designatedNameAttribute");
String designatedFilterAttribute = obj
.getSV("designatedFilterAttribute");
if (designatedNameAttribute != null) {
String type = obj.getSV("type");
DmcUncheckedObject typeDef = typeDefs.get(type);
typeDef.addValue("nameAttributeDef", name);
// DebugInfo.debug("\n" + typeDef.toOIF(15));
}
if (designatedFilterAttribute != null) {
String type = obj.getSV("type");
DmcUncheckedObject typeDef = typeDefs.get(type);
typeDef.addValue("filterAttributeDef", name);
// DebugInfo.debug("\n" + typeDef.toOIF(15));
}
} else if (objClass.equals("ClassDefinition")) {
classDefs.put(name, obj);
origOrderClasses.add(name);
} else if (objClass.equals("ComplexTypeDefinition")) {
complexTypeDefs.put(name, obj);
origOrderComplexTypes.add(name);
} else if (objClass.equals("AttributeValidatorDefinition")) {
avDefs.put(name, obj);
origOrderAVDs.add(name);
} else if (objClass.equals("ObjectValidatorDefinition")) {
ovDefs.put(name, obj);
origOrderOVDs.add(name);
} else if (objClass.equals("RuleDefinition")) {
ruleDefs.put(name, obj);
origOrderRules.add(name);
createClassDefForRuleDef(obj);
} else if (objClass.equals("RuleCategory")) {
ruleCategoryDefs.put(name, obj);
origOrderCategories.add(name);
} else {
ResultException ex = new ResultException(
"Unknown definition type: " + objClass);
ex.result.lastResult().lineNumber(obj.lineNumber);
}
allDefs.put(name, obj);