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

public Class EntryAnnotationImporter

extends Object
Class Inheritance
Imports
java.nio.file.Path, java.util.HashMap, .List, .Map, java.util.stream.Collectors, org.jabref.logic.FilePreferences, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .LinkedFile, org.jabref.model.pdf.FileAnnotation

Here all PDF files attached to a BibEntry are scanned for annotations using a PdfAnnotationImporter.

Field Summary

Modifier and TypeField and Description
private final BibEntry

Constructor Summary

AccessConstructor and Description
public
EntryAnnotationImporter(BibEntry
The BibEntry whose attached files are scanned for annotations.
entry
)

Method Summary

Modifier and TypeMethod and Description
private List<LinkedFile>

Returns:

a list of file parsed files
getFilteredFileList
()

Filter files with a web address containing "www."

public Map<Path, List<FileAnnotation>>

Returns:

Map from each PDF to a list of file annotations
importAnnotationsFromFiles
(BibDatabaseContext
The context is needed for the importer.
databaseContext
,
FilePreferences filePreferences)

Reads the annotations from the files that are attached to a BibEntry.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entryback to summary
private final BibEntry entry

Constructor Detail

EntryAnnotationImporterback to summary
public EntryAnnotationImporter(BibEntry entry)
Parameters
entry:BibEntry

The BibEntry whose attached files are scanned for annotations.

Method Detail

getFilteredFileListback to summary
private List<LinkedFile> getFilteredFileList()

Filter files with a web address containing "www."

Returns:List<LinkedFile>

a list of file parsed files

importAnnotationsFromFilesback to summary
public Map<Path, List<FileAnnotation>> importAnnotationsFromFiles(BibDatabaseContext databaseContext, FilePreferences filePreferences)

Reads the annotations from the files that are attached to a BibEntry.

Parameters
databaseContext:BibDatabaseContext

The context is needed for the importer.

Returns:Map<Path, List<FileAnnotation>>

Map from each PDF to a list of file annotations