The creation of a CSL instance is expensive, so the first call to makeBibliography would take some amount of time.
For this reason the class stores the instance and reuses it if the style does not change.
It is recommended to use this class when you need to generate many bibliographies in one style. Changing the output format is inexpensive.
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable CSL | |
| private @Nullable CitationStyleOutputFormat | |
| private @Nullable String | |
| private final JabRefItemDataProvider |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized List | getBibliographyEntryIds(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)
|
| private CSL | Returns: the initialized CSL instance (or a cached one)journal style of the output newStyle, CitationStyleOutputFormat usually HTML or RTF. newFormat)Return the stored CSL instance (if the same style is used) or reinitialize it. |
| public synchronized List | makeBibliography(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext
BibDatabaseContext is used to be able to resolve fields and their aliasesCreates the bibliography of the provided items. |
| public synchronized Bibliography | makeBibliographyObject(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)
|
| public synchronized Citation | makeCitation(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager)
|
| currentCslInstance | back to summary |
|---|---|
| private @Nullable CSL currentCslInstance | |
| currentFormat | back to summary |
|---|---|
| private @Nullable CitationStyleOutputFormat currentFormat | |
| currentStyle | back to summary |
|---|---|
| private @Nullable String currentStyle | |
| dataProvider | back to summary |
|---|---|
| private final JabRefItemDataProvider dataProvider | |
| CSLAdapter | back to summary |
|---|---|
| public CSLAdapter() | |
| getBibliographyEntryIds | back to summary |
|---|---|
| public synchronized List | |
| getCslInstance | back to summary |
|---|---|
| private CSL getCslInstance(String newStyle, CitationStyleOutputFormat newFormat) throws IOException Return the stored CSL instance (if the same style is used) or reinitialize it.
| |
| makeBibliography | back to summary |
|---|---|
| public synchronized List Creates the bibliography of the provided items.
| |
| makeBibliographyObject | back to summary |
|---|---|
| public synchronized Bibliography makeBibliographyObject(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager) throws IOException, IllegalArgumentException | |
| makeCitation | back to summary |
|---|---|
| public synchronized Citation makeCitation(List<BibEntry> bibEntries, String style, CitationStyleOutputFormat outputFormat, BibDatabaseContext databaseContext, BibEntryTypesManager entryTypesManager) throws IOException | |