Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.citationstyle

public Class JabRefLocaleProvider

extends Object
implements LocaleProvider
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.LocaleProvider
Imports
java.io.IOException, .InputStream, .UncheckedIOException, java.nio.charset.StandardCharsets, java.util.HashMap, .Map, de.undercouch.citeproc.LocaleProvider, org.slf4j.Logger, .LoggerFactory

A LocaleProvider that loads locales from a directory in the current module.

This implementation is only a slight adaption of de.undercouch.citeproc.DefaultLocaleProvider.

Field Summary

Modifier and TypeField and Description
private final Map<String, String>
private static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
retrieveLocale(String lang)

Implements de.undercouch.citeproc.LocaleProvider.retrieveLocale.

Retrieves the serialized XML representation for a given locale

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

localesback to summary
private final Map<String, String> locales
LOCALES_ROOTback to summary
private static final String LOCALES_ROOT
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

JabRefLocaleProviderback to summary
public JabRefLocaleProvider()

Method Detail

retrieveLocaleback to summary
public String retrieveLocale(String lang)

Implements de.undercouch.citeproc.LocaleProvider.retrieveLocale.

Doc from de.undercouch.citeproc.LocaleProvider.retrieveLocale.

Retrieves the serialized XML representation for a given locale

Annotations
@Override