Top Fields Constructors Methods
org.jabref.logic.layout

pack-priv Class LayoutEntry

extends Object
Class Inheritance
Imports
java.nio.charset.Charset, java.nio.file.Path, java.util.ArrayList, .Arrays, .Collections, .List, .Map, .Objects, .Optional, org.jabref.logic.formatter.bibtexfields.HtmlToLatexFormatter, .UnicodeToLatexFormatter, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.layout.format.AuthorAbbreviator, .AuthorAndToSemicolonReplacer, .AuthorAndsCommaReplacer, .AuthorAndsReplacer, .AuthorFirstAbbrLastCommas, .AuthorFirstAbbrLastOxfordCommas, .AuthorFirstFirst, .AuthorFirstFirstCommas, .AuthorFirstLastCommas, .AuthorFirstLastOxfordCommas, .AuthorLF_FF, .AuthorLF_FFAbbr, .AuthorLastFirst, .AuthorLastFirstAbbrCommas, .AuthorLastFirstAbbrOxfordCommas, .AuthorLastFirstAbbreviator, .AuthorLastFirstCommas, .AuthorLastFirstOxfordCommas, .AuthorNatBib, .AuthorOrgSci, .Authors, .CSLType, .CompositeFormat, .CreateBibORDFAuthors, .CreateDocBook4Authors, .CreateDocBook4Editors, .CreateDocBook5Authors, .CreateDocBook5Editors, .CurrentDate, .DOICheck, .DOIStrip, .DateFormatter, .Default, .EntryTypeFormatter, .FileLink, .FirstPage, .FormatPagesForHTML, .FormatPagesForXML, .GetOpenOfficeType, .HTMLChars, .HTMLParagraphs, .HayagrivaType, .IfPlural, .Iso690FormatDate, .Iso690NamesAuthors, .JournalAbbreviator, .LastPage, .LatexToUnicodeFormatter, .MarkdownFormatter, .NameFormatter, .NoSpaceBetweenAbbreviations, .NotFoundFormatter, .Number, .Ordinal, .RTFChars, .RemoveBrackets, .RemoveBracketsAddComma, .RemoveLatexCommandsFormatter, .RemoveTilde, .RemoveWhitespace, .Replace, .ReplaceWithEscapedDoubleQuotes, .RisAuthors, .RisKeywords, .RisMonth, .ShortMonthFormatter, .ToLowerCase, .ToUpperCase, .WrapContent, .WrapFileLinks, .XMLChars, org.jabref.logic.openoffice.style.OOPreFormatter, org.jabref.model.database.BibDatabase, .BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.FieldFactory, .InternalField, .UnknownField, org.jabref.model.strings.StringUtil, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final JournalAbbreviationRepository
private final List<Path>
private final List<String>
private List<LayoutEntry>
private static final Logger
private List<LayoutFormatter>
private LayoutFormatter
private final LayoutFormatterPreferences
private String
private final int

Constructor Summary

AccessConstructor and Description
public
LayoutEntry(StringInt si, List<Path> fileDirForDatabase, LayoutFormatterPreferences preferences, JournalAbbreviationRepository abbreviationRepository)

public
LayoutEntry(List<StringInt> parsedEntries, int layoutType, List<Path> fileDirForDatabase, LayoutFormatterPreferences preferences, JournalAbbreviationRepository abbreviationRepository)

Method Summary

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

public String
doLayout(BibDatabaseContext
Bibtex Database
databaseContext
,
Charset encoding)

Do layout for general formatters (no bibtex-entry fields).

private void
public List<String>
private LayoutFormatter
private List<LayoutFormatter>
getOptionalLayout(String formatterName)

Return an array of LayoutFormatters found in the given formatterName string (in order of appearance).

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

Field Detail

abbreviationRepositoryback to summary
private final JournalAbbreviationRepository abbreviationRepository
fileDirForDatabaseback to summary
private final List<Path> fileDirForDatabase
invalidFormatterback to summary
private final List<String> invalidFormatter
layoutEntriesback to summary
private List<LayoutEntry> layoutEntries
LOGGERback to summary
private static final Logger LOGGER
optionback to summary
private List<LayoutFormatter> option
postFormatterback to summary
private LayoutFormatter postFormatter
preferencesback to summary
private final LayoutFormatterPreferences preferences
textback to summary
private String text
typeback to summary
private final int type

Constructor Detail

LayoutEntryback to summary
public LayoutEntry(StringInt si, List<Path> fileDirForDatabase, LayoutFormatterPreferences preferences, JournalAbbreviationRepository abbreviationRepository)
LayoutEntryback to summary
public LayoutEntry(List<StringInt> parsedEntries, int layoutType, List<Path> fileDirForDatabase, LayoutFormatterPreferences preferences, JournalAbbreviationRepository abbreviationRepository)

Method Detail

doLayoutback to summary
public String doLayout(BibEntry bibtex, BibDatabase database)
doLayoutback to summary
public String doLayout(BibDatabaseContext databaseContext, Charset encoding)

Do layout for general formatters (no bibtex-entry fields).

Parameters
databaseContext:BibDatabaseContext

Bibtex Database

doOptionFieldback to summary
private void doOptionField(String s)
getInvalidFormattersback to summary
public List<String> getInvalidFormatters()
getLayoutFormatterByNameback to summary
private LayoutFormatter getLayoutFormatterByName(String name)
getOptionalLayoutback to summary
private List<LayoutFormatter> getOptionalLayout(String formatterName)

Return an array of LayoutFormatters found in the given formatterName string (in order of appearance).

getTextback to summary
public String getText()
handleFieldOrGroupStartback to summary
private String handleFieldOrGroupStart(BibEntry bibtex, BibDatabase database)
handleOptionFieldback to summary
private String handleOptionField(BibEntry bibtex, BibDatabase database)
parseMethodsCallsback to summary
public static List<List<String>> parseMethodsCalls(String calls)
setPostFormatterback to summary
public void setPostFormatter(LayoutFormatter formatter)