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

public Class JStyleLoader

extends Object
Class Inheritance
Imports
java.io.FileNotFoundException, .IOException, java.nio.file.Path, java.util.ArrayList, .List, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.layout.LayoutFormatterPreferences, org.jabref.logic.openoffice.OpenOfficePreferences, org.jspecify.annotations.NonNull, 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<JStyle>
private final List<String>
private final List<JStyle>
private final LayoutFormatterPreferences
private static final Logger
private final OpenOfficePreferences

Constructor Summary

AccessConstructor and Description
public
JStyleLoader(@NonNull OpenOfficePreferences openOfficePreferences, @NonNull LayoutFormatterPreferences formatterPreferences, @NonNull JournalAbbreviationRepository abbreviationRepository)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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

Adds the given style to the list of styles

public List<JStyle>
public JStyle
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<JStyle> externalStyles
internalStyleFilesback to summary
private final List<String> internalStyleFiles
internalStylesback to summary
private final List<JStyle> 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

JStyleLoaderback to summary
public JStyleLoader(@NonNull OpenOfficePreferences openOfficePreferences, @NonNull LayoutFormatterPreferences formatterPreferences, @NonNull JournalAbbreviationRepository abbreviationRepository)

Method Detail

addStyleIfValidback to summary
public boolean addStyleIfValid(@NonNull Path filename)

Adds the given style to the list of styles

Parameters
filename:@NonNull Path

The filename of the style

Returns:boolean

True if the added style is valid, false otherwise

getStylesback to summary
public List<JStyle> getStyles()
getUsedJstyleback to summary
public JStyle getUsedJstyle()
loadExternalStylesback to summary
private void loadExternalStyles()
loadInternalStylesback to summary
private void loadInternalStyles()
removeStyleback to summary
public boolean removeStyle(@NonNull JStyle style)
storeExternalStylesback to summary
private void storeExternalStyles()