Verified Owner
Top Constructors Methods
org.jabref.model.database

public Class BibDatabaseModeDetection

extends Object
Class Inheritance
Imports
java.util.stream.Stream, org.jabref.model.entry.BibEntry, org.jabref.model.entry.types.EntryType, .EntryTypeFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BibDatabaseMode

Returns:

the inferred database type
inferMode
(BibDatabase
a BibDatabase database
database
)

Tries to infer the database type by examining a BibDatabase database.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BibDatabaseModeDetectionback to summary
private BibDatabaseModeDetection()

Method Detail

inferModeback to summary
public static BibDatabaseMode inferMode(BibDatabase database)

Tries to infer the database type by examining a BibDatabase database.

All checks are based on the case-insensitive comparison of entry tag names. Only standard BibTex and Biblatex entry types are considered in the decision process.

  1. Check if any of the entries is a type exclusive to Biblatex
  2. Otherwise return BibTex
Parameters
database:BibDatabase

a BibDatabase database

Returns:BibDatabaseMode

the inferred database type