Package com.e1c.langtool.storage.model
Class DictionaryStorageSettings
java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
com.e1c.langtool.storage.model.ResourceStorageSettings
com.e1c.langtool.storage.model.DictionaryStorageSettings
The settings of the file resource context storage.
Allows to configure the same as
ResourceStorageSettings and StorageSettings.
Also allows to set validation settings, file path for the dictionary storage.
This model object is not allowed to modify after created project settings.-
Field Summary
Fields inherited from class com.e1c.langtool.storage.model.StorageSettings
storageId -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new dictionary storage settings.DictionaryStorageSettings(String segment) Instantiates a new dictionary storage settings. -
Method Summary
Modifier and TypeMethodDescriptionGets the file path of the dictionary.Gets the format of the dictionary or default valuedict.Gets the storage id for the dictionary storage provider only.Gets the validation settings.voidsetFilePath(String filePath) Sets the file path of the dictionary.voidsetValidation(List<String> validation) Sets the validation settings.Methods inherited from class com.e1c.langtool.storage.model.ResourceStorageSettings
getFileExtension, setFileExtension, setFormatMethods inherited from class com.e1c.langtool.storage.model.StorageSettings
getFeatureFilter, getId, getPresentation, getSettings, isReadOnly, setFeatureFilter, setId, setPresentation, setReadOnly, setSettings
-
Constructor Details
-
DictionaryStorageSettings
Instantiates a new dictionary storage settings.- Parameters:
segment- the segment, cannot benull.
-
DictionaryStorageSettings
public DictionaryStorageSettings()Instantiates a new dictionary storage settings.
-
-
Method Details
-
getStorageId
Gets the storage id for the dictionary storage provider only. TheStorageSettings.getId()method returns only the segment part ofStorageID.- Overrides:
getStorageIdin classResourceStorageSettings- Returns:
- the storage id, cannot return
null.
-
getFormat
Gets the format of the dictionary or default valuedict.- Overrides:
getFormatin classResourceStorageSettings- Returns:
- the format, cannot return
null.
-
getFilePath
Gets the file path of the dictionary.- Returns:
- the file path, cannot return
null.
-
setFilePath
Sets the file path of the dictionary.- Parameters:
filePath- the new file path, can benull.
-
getValidation
Gets the validation settings.- Returns:
- the validation, cannot return
null.
-
setValidation
Sets the validation settings.- Parameters:
validation- the new validation settings, can benull.
-