Top Fields Constructors Methods
org.jabref.logic.protectedterms

public Class ProtectedTermsLoader

extends Object
Class Inheritance
Imports
java.nio.file.Files, .Path, java.util.ArrayList, .HashMap, .HashSet, .List, .Map, .Objects, .Set, java.util.function.Supplier, org.jabref.logic.l10n.Localization, org.slf4j.Logger, .LoggerFactory

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ProtectedTermsList
addNewProtectedTermsList(String newDescription, String newLocation, boolean enabled)

public ProtectedTermsList
addNewProtectedTermsList(String newDescription, String newLocation)

public void
addProtectedTermsListFromFile(String fileName, boolean enabled)

public static List<String>
public List<String>
public List<ProtectedTermsList>
public static ProtectedTermsList
readProtectedTermsListFromFile(Path path, boolean enabled)

public static ProtectedTermsList
readProtectedTermsListFromResource(String resource, String description, boolean enabled)

public void
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INTERNAL_LISTSback to summary
private static final Map<String, Supplier<String>> INTERNAL_LISTS
LOGGERback to summary
private static final Logger LOGGER
mainListback to summary
private final List<ProtectedTermsList> mainList

Constructor Detail

ProtectedTermsLoaderback to summary
public ProtectedTermsLoader(ProtectedTermsPreferences preferences)

Method Detail

addNewProtectedTermsListback to summary
public ProtectedTermsList addNewProtectedTermsList(String newDescription, String newLocation, boolean enabled)
addNewProtectedTermsListback to summary
public ProtectedTermsList addNewProtectedTermsList(String newDescription, String newLocation)
addProtectedTermsListFromFileback to summary
public void addProtectedTermsListFromFile(String fileName, boolean enabled)
getInternalListsback to summary
public static List<String> getInternalLists()
getProtectedTermsback to summary
public List<String> getProtectedTerms()
getProtectedTermsListsback to summary
public List<ProtectedTermsList> getProtectedTermsLists()
readProtectedTermsListFromFileback to summary
public static ProtectedTermsList readProtectedTermsListFromFile(Path path, boolean enabled)
readProtectedTermsListFromResourceback to summary
public static ProtectedTermsList readProtectedTermsListFromResource(String resource, String description, boolean enabled)
reloadProtectedTermsListback to summary
public void reloadProtectedTermsList(ProtectedTermsList list)
removeProtectedTermsListback to summary
public boolean removeProtectedTermsList(ProtectedTermsList termList)
updateback to summary
public void update(ProtectedTermsPreferences preferences)