use of org.jabref.model.cleanup.CleanupJob in project jabref by JabRef.
the class CleanupWorker method cleanup.
public List<FieldChange> cleanup(CleanupPreset preset, BibEntry entry) {
Objects.requireNonNull(preset);
Objects.requireNonNull(entry);
List<CleanupJob> jobs = determineCleanupActions(preset);
List<FieldChange> changes = new ArrayList<>();
for (CleanupJob job : jobs) {
changes.addAll(job.cleanup(entry));
}
return changes;
}
use of org.jabref.model.cleanup.CleanupJob in project jabref by JabRef.
the class DoiCleanup method removeFieldValue.
private void removeFieldValue(BibEntry entry, String field, List<FieldChange> changes) {
CleanupJob eraser = new FieldFormatterCleanup(field, new ClearFormatter());
changes.addAll(eraser.cleanup(entry));
}
Aggregations