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

public Class MonthChecker

extends Object
implements ValueChecker
Class Inheritance
All Implemented Interfaces
org.jabref.logic.integrity.ValueChecker
Imports
java.util.Optional, java.util.function.Predicate, java.util.regex.Pattern, org.jabref.logic.l10n.Localization, org.jabref.logic.util.strings.StringUtil, org.jabref.model.database.BibDatabaseContext, org.jspecify.annotations.NonNull, .Nullable

Field Summary

Modifier and TypeField and Description
private final BibDatabaseContext
private static final Predicate<String>
private static final Predicate<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
checkValue(@Nullable String value)

biblatex package documentation (Section 2.3.9): The month field is an integer field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bibDatabaseContextMonthback to summary
private final BibDatabaseContext bibDatabaseContextMonth
MONTH_NORMALIZEDback to summary
private static final Predicate<String> MONTH_NORMALIZED
ONLY_AN_INTEGERback to summary
private static final Predicate<String> ONLY_AN_INTEGER

Constructor Detail

MonthCheckerback to summary
public MonthChecker(@NonNull BibDatabaseContext bibDatabaseContext)

Method Detail

checkValueback to summary
public Optional<String> checkValue(@Nullable String value)

biblatex package documentation (Section 2.3.9): The month field is an integer field. The bibliography style converts the month to a language-dependent string as required. For backwards compatibility, you may also use the following three-letter abbreviations in the month field: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec. Note that these abbreviations are BibTeX strings which must be given without any braces or quotes.

Annotations
@Override