Verified Owner
Top Fields Constructors Methods
org.jabref.migrations

pack-priv Class CustomEntryTypePreferenceMigration

extends Object
Class Inheritance
Imports
java.util.ArrayList, .LinkedHashSet, .List, .Optional, java.util.stream.Collectors, org.jabref.logic.preferences.JabRefCliPreferences, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.BibEntryType, .BibEntryTypeBuilder, .BibEntryTypesManager, org.jabref.model.entry.field.FieldFactory, org.jabref.model.entry.types.EntryTypeFactory

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Optional<BibEntryType>
getBibEntryType(int number, JabRefCliPreferences preferences)

Retrieves all deprecated information about the entry type in preferences, with the tag given by number.

pack-priv static void
upgradeStoredBibEntryTypes(BibDatabaseMode defaultBibDatabaseMode, JabRefCliPreferences preferences, BibEntryTypesManager entryTypesManager)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CUSTOM_TYPE_NAMEback to summary
private static final String CUSTOM_TYPE_NAME
CUSTOM_TYPE_OPTback to summary
private static final String CUSTOM_TYPE_OPT
CUSTOM_TYPE_PRIOPTback to summary
private static final String CUSTOM_TYPE_PRIOPT
CUSTOM_TYPE_REQback to summary
private static final String CUSTOM_TYPE_REQ

Constructor Detail

CustomEntryTypePreferenceMigrationback to summary
private CustomEntryTypePreferenceMigration()

Method Detail

getBibEntryTypeback to summary
private static Optional<BibEntryType> getBibEntryType(int number, JabRefCliPreferences preferences)

Retrieves all deprecated information about the entry type in preferences, with the tag given by number.

(old implementation which has been copied)

upgradeStoredBibEntryTypesback to summary
pack-priv static void upgradeStoredBibEntryTypes(BibDatabaseMode defaultBibDatabaseMode, JabRefCliPreferences preferences, BibEntryTypesManager entryTypesManager)