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

public Class CitationStyleGenerator

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.Collections, .List, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jbibtex.TokenMgrException, org.slf4j.Logger, .LoggerFactory

Facade to unify the access to the citation style engine. Use these methods if you need rendered BibTeX item(s) in a given journal style. This class uses CSLAdapter to create output.

Field Summary

Modifier and TypeField and Description
private static final CSLAdapter
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected static String
generateCitation(BibEntry entry, CitationStyle style, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry and style with a default BibDatabaseContext

protected static String
generateCitation(BibEntry entry, String style, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry and style with a default BibDatabaseContext

public static String
generateCitation(BibEntry entry, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry, style, and output format

public static List<String>
generateCitations(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)

Generates the citation for multiple entries at once.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CSL_ADAPTERback to summary
private static final CSLAdapter CSL_ADAPTER
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

CitationStyleGeneratorback to summary
private CitationStyleGenerator()

Method Detail

generateCitationback to summary
protected static String generateCitation(BibEntry entry, CitationStyle style, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry and style with a default BibDatabaseContext

Implementation Note

the citation is generated using JavaScript which may take some time, better call it from outside the main Thread

generateCitationback to summary
protected static String generateCitation(BibEntry entry, String style, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry and style with a default BibDatabaseContext

Implementation Note

the citation is generated using JavaScript which may take some time, better call it from outside the main Thread

generateCitationback to summary
public static String generateCitation(BibEntry entry, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)

Generates a Citation based on the given entry, style, and output format

Implementation Note

the citation is generated using JavaScript which may take some time, better call it from outside the main Thread

generateCitationsback to summary
public static List<String> generateCitations(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)

Generates the citation for multiple entries at once.

Implementation Note

The citations are generated using JavaScript which may take some time, better call it from outside the main thread.