if (associations != null)
{
int n = associations.size();
for (int i = 0; i < n; ++i)
{
Association assoc = (Association) associations.get(i);
if (assoc.getAssociationPriority() == priority)
{
JaspiraEventHandlerCode ret = doOpen(assoc, !mo.isModifiable(), event);
if (ret != EventModule.EVENT_IGNORED)
return ret;
}
}
}
else
{
// No associations defined for this model object;
// Assume this is ok and prevent an error message
// TODONOW return EVENT_CONSUMED;
}
}
}
}
else if (o instanceof Association)
{
Association assoc = (Association) o;
if (assoc.getAssociationPriority() == Association.PRIMARY)
{
JaspiraEventHandlerCode ret = doOpen(assoc, false, event);
if (ret != EventModule.EVENT_IGNORED)
return ret;
}