@Override
public boolean check(Project aProject, CAS aCas, List<LogMessage> aMessages)
{
Map<FeatureStructure, FeatureStructure> nonIndexed = getNonIndexedFSesWithOwner(aCas);
if (!nonIndexed.isEmpty()) {
aMessages.add(new LogMessage(this, LogLevel.ERROR, "Unindexed feature structures: %d",
nonIndexed.size()));
for (Entry<FeatureStructure, FeatureStructure> e : nonIndexed.entrySet()) {
aMessages.add(new LogMessage(this, LogLevel.ERROR,
"Non-indexed feature structure [%s] reachable through [%s]", e.getKey(),
e.getValue()));
}
}
return nonIndexed.isEmpty();
}
}