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

public final Enum BibDatabaseMode

extends Enum<BibDatabaseMode>
Class Inheritance
Imports
java.util.Locale

An enum which contains the possible BibDatabase Modes. Possible are BibTeX and biblatex.

Field Summary

Modifier and TypeField and Description
public static final BibDatabaseMode
public static final BibDatabaseMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
getAsString()

Returns: The current mode as String in lowercase

public String
getFormattedName()

Returns: the name of the current mode as String

public BibDatabaseMode

Returns:

biblatex if the current mode is BIBTEX, BibTeX else
getOppositeMode
()

Returns the opposite mode of the current mode as BibDatabaseMode.

public static BibDatabaseMode

Returns:

BIBTEX, if the string is bibtex; BIBLATEX, if the string is biblatex
parse
(String data)

Returns the BibDatabaseMode that equals the given string.

public static BibDatabaseMode
public static BibDatabaseMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BIBLATEXback to summary
public static final BibDatabaseMode BIBLATEX
BIBTEXback to summary
public static final BibDatabaseMode BIBTEX

Constructor Detail

BibDatabaseModeback to summary
private BibDatabaseMode()

Method Detail

getAsStringback to summary
public String getAsString()
Returns:String

The current mode as String in lowercase

getFormattedNameback to summary
public String getFormattedName()
Returns:String

the name of the current mode as String

getOppositeModeback to summary
public BibDatabaseMode getOppositeMode()

Returns the opposite mode of the current mode as BibDatabaseMode.

Returns:BibDatabaseMode

biblatex if the current mode is BIBTEX, BibTeX else

parseback to summary
public static BibDatabaseMode parse(String data)

Returns the BibDatabaseMode that equals the given string. The use of capital and small letters in the string doesn't matter.If neither "bibtex" nor "biblatex" is the given string, then an IllegalArgumentException will be thrown.

Returns:BibDatabaseMode

BIBTEX, if the string is bibtex; BIBLATEX, if the string is biblatex

valueOfback to summary
public static BibDatabaseMode valueOf(String name)
valuesback to summary
public static BibDatabaseMode[] values()