Package com.e1c.langtool.storage.model
Class ProjectStorageSettings
java.lang.Object
com.e1c.langtool.storage.model.ProjectStorageSettings
The Project Storage Settings, allows to configure the order of reading from storages, special settings how to edit
translations in storages with reach capabilities, and some settings for storage segments of all providers.
Project settings contains also extended settings for file resource context storage segments and common project
dictionary storage segments.
This model object is not allowed to modify after created project settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContext(ContextStorageSettings context) Adds the context storage settings.voidaddContributed(StorageSettings settings) Adds the contributed settings of other translation providers that not used in this model.voidaddDictionary(DictionaryStorageSettings dictionary) Adds the dictionary settings.voidaddStorages(StorageSettings storages) Adds the other non-resources storage settings.All storage settings including all contributed settings of other translation providers that not used.Gets the context storage settings.Gets the context storage settings.Gets the contributed settings of translation provider segments that not used in this model.Gets the dictionary storage settings.Gets the dictionary storage settings.getEdit()Gets the edit settings.getRead()Gets the read storage ID list.Gets the read storage IDs.Gets the read storage settings in order of it's use when read storages.Gets the storage settings.Gets the storage settings.voidsetContext(List<ContextStorageSettings> context) Sets the context storage settings..voidsetContext(Map<String, ContextStorageSettings> context) Sets the context storage settings.voidsetDictionary(List<DictionaryStorageSettings> dictionary) Sets the dictionary storage settings.voidsetDictionary(Map<String, DictionaryStorageSettings> dictionary) Sets the dictionary storage settings.voidsetEdit(EditSettings edit) Sets the edit settings.voidsetRead(StorageIdList read) Sets the read storage ID list.voidsetStorages(List<StorageSettings> storages) Sets the storage settings.voidsetStorages(Map<String, StorageSettings> storages) Sets the storage settings.
-
Constructor Details
-
ProjectStorageSettings
public ProjectStorageSettings()
-
-
Method Details
-
getEdit
Gets the edit settings.- Returns:
- the edit settings, cannot return
null.
-
setEdit
Sets the edit settings.- Parameters:
edit- the new edit settings, can benull.
-
getRead
Gets the read storage ID list.- Returns:
- the read storage ID list, cannot return
null.
-
setRead
Sets the read storage ID list.- Parameters:
read- the new read storage ID list, can benull.
-
getReadStorageIds
Gets the read storage IDs.- Returns:
- the read storage IDs, cannot return
null.
-
getContext
Gets the context storage settings.- Returns:
- the context storage settings, cannot return
null.
-
getContextSettings
Gets the context storage settings.- Returns:
- the context storage settings, cannot return
null.
-
setContext
Sets the context storage settings..- Parameters:
context- the new context storage settings, can benull.
-
setContext
Sets the context storage settings.- Parameters:
context- the context storage settings, can benull.
-
addContext
Adds the context storage settings.- Parameters:
context- the context storage settings, cannot benull.
-
getDictionary
Gets the dictionary storage settings.- Returns:
- the dictionary storage settings, cannot return
null.
-
getDictionarySettings
Gets the dictionary storage settings.- Returns:
- the dictionary settings, cannot return
null.
-
setDictionary
Sets the dictionary storage settings.- Parameters:
dictionary- the new dictionary storage settings, can benull.
-
setDictionary
Sets the dictionary storage settings.- Parameters:
dictionary- the dictionary storage settings, can benull.
-
addDictionary
Adds the dictionary settings.- Parameters:
dictionary- the dictionary settings, cannot benull.
-
getStorages
Gets the storage settings.- Returns:
- the storage settings, cannot return
null.
-
getStorageSettings
Gets the storage settings.- Returns:
- the storage settings, cannot return
null.
-
setStorages
Sets the storage settings.- Parameters:
storages- the new storage settings, can benull.
-
setStorages
Sets the storage settings.- Parameters:
storages- the storage settings, can benull.
-
addStorages
Adds the other non-resources storage settings.- Parameters:
storages- the storage settings, cannot benull.
-
getReadStorageSettings
Gets the read storage settings in order of it's use when read storages. This collection is read only and should not be modified.- Returns:
- the read storage settings, cannot return
null.
-
allStorageSettings
All storage settings including all contributed settings of other translation providers that not used. This collection is read only and should not be modified.- Returns:
- the map of storage ID and storage settings, cannot return
null.
-
getContributed
Gets the contributed settings of translation provider segments that not used in this model.- Returns:
- the contributed, cannot return
null.
-
addContributed
Adds the contributed settings of other translation providers that not used in this model.- Parameters:
settings- the settings, cannot benull.
-