Verified Owner
Top Description Fields Constructors Methods
org.jabref.migrations

public Class ConvertMarkingToGroups

extends Object
implements PostOpenMigration
Class Inheritance
All Implemented Interfaces
org.jabref.migrations.PostOpenMigration
Imports
java.util.Collection, .List, .Map, .Optional, java.util.regex.Matcher, .Pattern, javafx.collections.ObservableList, org.jabref.logic.groups.GroupsFactory, org.jabref.logic.importer.ParserResult, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.InternalField, org.jabref.model.groups.ExplicitGroup, .GroupHierarchyType, .GroupTreeNode, com.google.common.collect.Multimap, .MultimapBuilder, org.jspecify.annotations.NonNull

Converts legacy explicit groups, where the group contained a list of assigned entries, to the new format, where the entry stores a list of groups it belongs to.

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private Multimap<String, BibEntry>
getMarkingWithEntries(List<BibEntry> entries)

Looks for markings (such as __markedentry = {Nicolas:6}) in the given list of entries.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MARKING_PATTERNback to summary
private static final Pattern MARKING_PATTERN

Constructor Detail

ConvertMarkingToGroupsback to summary
public ConvertMarkingToGroups()

Method Detail

clearMarkingsback to summary
private void clearMarkings(List<BibEntry> entries)
getMarkingWithEntriesback to summary
private Multimap<String, BibEntry> getMarkingWithEntries(List<BibEntry> entries)

Looks for markings (such as __markedentry = {Nicolas:6}) in the given list of entries.

performMigrationback to summary
public void performMigration(@NonNull ParserResult parserResult)

Implements org.jabref.migrations.PostOpenMigration.performMigration.

Annotations
@Override