Top Fields Constructors Methods
org.jabref.logic.openoffice.style

public Class StyleLoader

extends Object
Class Inheritance
Imports
java.io.FileNotFoundException, .IOException, java.nio.file.Path, java.util.ArrayList, .Arrays, .List, .Objects, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.layout.LayoutFormatterPreferences, org.jabref.logic.openoffice.OpenOfficePreferences, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final JournalAbbreviationRepository
public static final String
public static final String
private final List<OOBibStyle>
private final List<String>
private final List<OOBibStyle>
private final LayoutFormatterPreferences
private static final Logger
private final OpenOfficePreferences

Constructor Summary

AccessConstructor and Description
public
StyleLoader(OpenOfficePreferences openOfficePreferences, LayoutFormatterPreferences formatterPreferences, JournalAbbreviationRepository abbreviationRepository)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the added style is valid, false otherwise
addStyleIfValid
(String
The filename of the style
filename
)

Adds the given style to the list of styles

public List<OOBibStyle>
public OOBibStyle
private void
private void
public boolean
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abbreviationRepositoryback to summary
private final JournalAbbreviationRepository abbreviationRepository
DEFAULT_AUTHORYEAR_STYLE_PATHback to summary
public static final String DEFAULT_AUTHORYEAR_STYLE_PATH
DEFAULT_NUMERICAL_STYLE_PATHback to summary
public static final String DEFAULT_NUMERICAL_STYLE_PATH
externalStylesback to summary
private final List<OOBibStyle> externalStyles
internalStyleFilesback to summary
private final List<String> internalStyleFiles
internalStylesback to summary
private final List<OOBibStyle> internalStyles
layoutFormatterPreferencesback to summary
private final LayoutFormatterPreferences layoutFormatterPreferences
LOGGERback to summary
private static final Logger LOGGER
openOfficePreferencesback to summary
private final OpenOfficePreferences openOfficePreferences

Constructor Detail

StyleLoaderback to summary
public StyleLoader(OpenOfficePreferences openOfficePreferences, LayoutFormatterPreferences formatterPreferences, JournalAbbreviationRepository abbreviationRepository)

Method Detail

addStyleIfValidback to summary
public boolean addStyleIfValid(String filename)

Adds the given style to the list of styles

Parameters
filename:String

The filename of the style

Returns:boolean

True if the added style is valid, false otherwise

getStylesback to summary
public List<OOBibStyle> getStyles()
getUsedStyleback to summary
public OOBibStyle getUsedStyle()
loadExternalStylesback to summary
private void loadExternalStyles()
loadInternalStylesback to summary
private void loadInternalStyles()
removeStyleback to summary
public boolean removeStyle(OOBibStyle style)
storeExternalStylesback to summary
private void storeExternalStyles()