Verified Owner
Top Fields Constructors Methods
org.jabref.logic.layout

public Class Layout

extends Object
Class Inheritance
Imports
java.nio.charset.Charset, java.nio.file.Path, java.util.ArrayList, .List, java.util.stream.Collectors, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.model.database.BibDatabase, .BibDatabaseContext, org.jabref.model.entry.BibEntry, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final List<LayoutEntry>
private static final Logger
private final List<String>

Constructor Summary

AccessConstructor and Description
public
Layout(List<StringInt> parsedEntries, List<Path> fileDirForDatabase, LayoutFormatterPreferences layoutPreferences, JournalAbbreviationRepository abbreviationRepository)

Method Summary

Modifier and TypeMethod and Description
public String
doLayout(BibEntry bibtex, BibDatabase database)

Returns the processed bibtex entry.

public String
doLayout(BibDatabaseContext databaseContext, Charset encoding)

Returns the processed text.

public List<String>
public String
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

layoutEntriesback to summary
private final List<LayoutEntry> layoutEntries
LOGGERback to summary
private static final Logger LOGGER
missingFormattersback to summary
private final List<String> missingFormatters

Constructor Detail

Layoutback to summary
public Layout(List<StringInt> parsedEntries, List<Path> fileDirForDatabase, LayoutFormatterPreferences layoutPreferences, JournalAbbreviationRepository abbreviationRepository)

Method Detail

doLayoutback to summary
public String doLayout(BibEntry bibtex, BibDatabase database)

Returns the processed bibtex entry. If the database argument is null, no string references will be resolved. Otherwise all valid string references will be replaced by the strings' contents. Even recursive string references are resolved.

doLayoutback to summary
public String doLayout(BibDatabaseContext databaseContext, Charset encoding)

Returns the processed text. If the database argument is null, no string references will be resolved. Otherwise, all valid string references will be replaced by the strings' contents. Even recursive string references are resolved.

getMissingFormattersback to summary
public List<String> getMissingFormatters()
getTextback to summary
public String getText()
setPostFormatterback to summary
public void setPostFormatter(LayoutFormatter formatter)