Top Description Fields Constructors Methods
org.jabref.logic.bibtex

public Class TypedBibEntry

extends Object
Class Inheritance
Imports
java.util.Objects, .Optional, org.jabref.model.database.BibDatabase, .BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryType, .BibEntryTypesManager

Wrapper around a BibEntry offering methods for BibDatabaseMode-dependent results

Field Summary

Modifier and TypeField and Description
private final Optional<BibDatabase>
private final BibEntry
private final BibDatabaseMode

Constructor Summary

AccessConstructor and Description
public
public
TypedBibEntry(BibEntry entry, BibDatabaseContext databaseContext)

Method Summary

Modifier and TypeMethod and Description
public String
getTypeForDisplay()

Gets the display name for the type of the entry.

public boolean

Returns:

true if all required fields are set, false otherwise
hasAllRequiredFields
(BibEntryTypesManager entryTypesManager)

Checks the fields of the entry whether all required fields are set.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseback to summary
private final Optional<BibDatabase> database
entryback to summary
private final BibEntry entry
modeback to summary
private final BibDatabaseMode mode

Constructor Detail

TypedBibEntryback to summary
public TypedBibEntry(BibEntry entry, BibDatabaseMode mode)
TypedBibEntryback to summary
public TypedBibEntry(BibEntry entry, BibDatabaseContext databaseContext)

Method Detail

getTypeForDisplayback to summary
public String getTypeForDisplay()

Gets the display name for the type of the entry.

hasAllRequiredFieldsback to summary
public boolean hasAllRequiredFields(BibEntryTypesManager entryTypesManager)

Checks the fields of the entry whether all required fields are set. In other words: It is checked whether this entry contains all fields it needs to be complete.

Returns:boolean

true if all required fields are set, false otherwise