+ section + " has obsolete mode-field.");
}
Iterator<Field> iterator = section.getFieldIterator();
while (iterator.hasNext()) {
Field field = iterator.next();
String fieldName = field.getName();
if (fieldName.equals("Mode")) {
continue;
}
checkListenerRoleSyntax(fieldName);
String listenerRole = getListenerRole(fieldName);
boolean before = isBefore(fieldName);
boolean after = isAfter(fieldName);
assert before != after;
for (int n = 0; n < field.getNumberOfValues(); n++) {
String event = field.getStringValue(n);
manager.addListener(event, listenerRole,
listener, listeningMode, before, after);
}
}
}