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

public Class AmpersandChecker

extends Object
implements EntryChecker
Class Inheritance
All Implemented Interfaces
org.jabref.logic.integrity.EntryChecker
Imports
java.util.List, .Map, java.util.regex.MatchResult, .Pattern, java.util.stream.Stream, javafx.util.Pair, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field, .FieldFactory, com.google.common.base.CharMatcher

Checks if the BibEntry contains unescaped ampersands. This is done in nonverbatim fields. Similar to HTMLCharacterChecker The LatexIntegrityChecker is not able to check unescaped ampersands. Therefore, this separate checker is required.

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<IntegrityMessage>
private static Stream<Pair<Field, Long>>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BACKSLASH_PRECEDED_AMPERSANDback to summary
private static final Pattern BACKSLASH_PRECEDED_AMPERSAND

Constructor Detail

AmpersandCheckerback to summary
public AmpersandChecker()

Method Detail

checkback to summary
public List<IntegrityMessage> check(BibEntry entry)

Implements org.jabref.logic.integrity.EntryChecker.check.

Annotations
@Override
getUnescapedAmpersandsWithCountback to summary
private static Stream<Pair<Field, Long>> getUnescapedAmpersandsWithCount(Map.Entry<Field, String> entry)