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

public Class FieldFormatterCleanupMapper

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .LinkedHashMap, .LinkedHashSet, .List, .Map, .Set, .StringJoiner, java.util.regex.Matcher, .Pattern, org.jabref.logic.util.strings.StringUtil, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field, .FieldFactory

Field Summary

Modifier and TypeField and Description
private static final String
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
applyFormatters(String fieldFormatters, List<BibEntry> entries)

public static List<FieldFormatterCleanup>
parseActions(String formatterString)

This parses the key/list map of fields and clean up actions for the field.

public static String
serializeActions(List<FieldFormatterCleanup> actionList, String newLineSeparator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLEANUP_FOR_PARSINGback to summary
private static final String CLEANUP_FOR_PARSING
FIELD_FORMATTER_CLEANUP_PATTERNback to summary
private static final Pattern FIELD_FORMATTER_CLEANUP_PATTERN

Constructor Detail

FieldFormatterCleanupMapperback to summary
private FieldFormatterCleanupMapper()

Method Detail

applyFormattersback to summary
public static void applyFormatters(String fieldFormatters, List<BibEntry> entries)
parseActionsback to summary
public static List<FieldFormatterCleanup> parseActions(String formatterString)

This parses the key/list map of fields and clean up actions for the field.

General format for one key/list map: ...[...] - field[formatter1,formatter2,...] Multiple are written as ...[...]...[...]...[...] field1[formatter1,formatter2,...]field2[formatter3,formatter4,...]

The idea is that characters are field names until [ is reached and that formatter lists are terminated by ]

Example: pages[normalize_page_numbers]title[escapeAmpersands,escapeDollarSign,escapeUnderscores,latex_cleanup]

serializeActionsback to summary
public static String serializeActions(List<FieldFormatterCleanup> actionList, String newLineSeparator)