Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.cleanup

public Class AbbreviateJournalCleanup

extends Object
implements CleanupJob
Class Inheritance
All Implemented Interfaces
org.jabref.logic.cleanup.CleanupJob
Annotations
@NullMarked
Imports
java.util.ArrayList, .List, .Optional, org.jabref.logic.journals.Abbreviation, .AbbreviationType, .JournalAbbreviationRepository, org.jabref.model.FieldChange, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.AMSField, .Field, .StandardField, org.jspecify.annotations.NullMarked

Abbreviates journal field

Field Summary

Modifier and TypeField and Description
private final AbbreviationType
private final BibDatabase
private final JournalAbbreviationRepository
private final boolean

Constructor Summary

AccessConstructor and Description
public
AbbreviateJournalCleanup(BibDatabase database, JournalAbbreviationRepository journalAbbreviationRepository, AbbreviationType abbreviationType, boolean useFJournalField)

Method Summary

Modifier and TypeMethod and Description
private List<FieldChange>
abbreviateField(BibEntry entry, Field fieldName)

public List<FieldChange>
cleanup(BibEntry entry)

Implements org.jabref.logic.cleanup.CleanupJob.cleanup.

Cleans up the given entry and returns the list of changes made.

private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abbreviationTypeback to summary
private final AbbreviationType abbreviationType
databaseback to summary
private final BibDatabase database
journalAbbreviationRepositoryback to summary
private final JournalAbbreviationRepository journalAbbreviationRepository
useFJournalFieldback to summary
private final boolean useFJournalField

Constructor Detail

AbbreviateJournalCleanupback to summary
public AbbreviateJournalCleanup(BibDatabase database, JournalAbbreviationRepository journalAbbreviationRepository, AbbreviationType abbreviationType, boolean useFJournalField)

Method Detail

abbreviateFieldback to summary
private List<FieldChange> abbreviateField(BibEntry entry, Field fieldName)
cleanupback to summary
public List<FieldChange> cleanup(BibEntry entry)

Implements org.jabref.logic.cleanup.CleanupJob.cleanup.

Doc from org.jabref.logic.cleanup.CleanupJob.cleanup.

Cleans up the given entry and returns the list of changes made.

Annotations
@Override
getAbbreviatedNameback to summary
private String getAbbreviatedName(Abbreviation text)