Package com.e1c.langtool.storage.model
Class ResourceStorageSettings
java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
com.e1c.langtool.storage.model.ResourceStorageSettings
- Direct Known Subclasses:
ContextStorageSettings,DictionaryStorageSettings
Abstract resource file storage settings. Allows to configure file extension and file model data format in addition
to capabilities of
StorageSettings.
This model object is not allowed to modify after created project settings.- See Also:
-
Field Summary
Fields inherited from class com.e1c.langtool.storage.model.StorageSettings
storageId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file extension.Gets the format of the storage files.Subclasses must override this method to provide correct storage IDvoidsetFileExtension(String fileExtension) Sets the file extension.voidSets the format of storage files.Methods inherited from class com.e1c.langtool.storage.model.StorageSettings
getFeatureFilter, getId, getPresentation, getSettings, isReadOnly, setFeatureFilter, setId, setPresentation, setReadOnly, setSettings
-
Constructor Details
-
ResourceStorageSettings
public ResourceStorageSettings()
-
-
Method Details
-
getStorageId
Subclasses must override this method to provide correct storage ID- Overrides:
getStorageIdin classStorageSettings- Returns:
- the storage id
- Throws:
UnsupportedOperationException
-
getFormat
Gets the format of the storage files.- Returns:
- the format of storage files, should not return
null.
-
setFormat
Sets the format of storage files.- Parameters:
format- the new format, should not benull.
-
getFileExtension
Gets the file extension.- Returns:
- the file extension, should not return
null.
-
setFileExtension
Sets the file extension.- Parameters:
fileExtension- the new file extension, should not benull.
-