Package com.e1c.langtool.storage.model
Class EditSettings
java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
com.e1c.langtool.storage.model.EditSettings
The settings of default editing strategy that allows to select closest
StorageID what applicable to edit.
Settings supports to set list of storage IDs on the top-level of settings, and in addition
to select StorageID with rules if top-level storage IDs cannot be apply for the translation key.
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 TypeMethodDescriptionvoidaddRule(RuleSettings rule) Adds the new rule to the collection.All storage IDs of all rules and this settings-level storages.Unsupported method.getId()Gets the id of this settings, always returnseditvalue.Gets the presentation.getRules()Gets the rules.Gets the rules settings.Unsupported method.Gets the storage id.Gets the storage IDs of the editing settings.Gets the storage list of the editing settings.booleanChecks if the storage is read only.voidsetFeatureFilter(Map<String, FeatureSettingsFilter> featureFilter) Unsupported method.voidUnsupported method.voidsetReadOnly(Boolean readOnly) Unsupported method.voidsetRules(List<RuleSettings> rules) Sets the rules of the selecting storage ID to edit.voidsetRules(Map<String, RuleSettings> rules) Sets the rules of the selecting storage ID to edit.voidsetSettings(Map<String, String> settings) Unsupported method.voidsetStorages(StorageIdList storages) Sets the storage list of the editing settings.Methods inherited from class com.e1c.langtool.storage.model.StorageSettings
setPresentation
-
Constructor Details
-
EditSettings
public EditSettings()
-
-
Method Details
-
getId
Gets the id of this settings, always returnseditvalue.- Overrides:
getIdin classStorageSettings- Returns:
- the id
-
setId
Unsupported method.- Overrides:
setIdin classStorageSettings- Parameters:
id- the new id
-
getPresentation
Gets the presentation.- Overrides:
getPresentationin classStorageSettings- Returns:
- the presentation, cannot return
null.
-
getStorageId
Gets the storage id.- Overrides:
getStorageIdin classStorageSettings- Returns:
- the storage id, cannot return
null.
-
isReadOnly
public boolean isReadOnly()Checks if the storage is read only.- Overrides:
isReadOnlyin classStorageSettings- Returns:
- always returns
false
-
setReadOnly
Unsupported method.- Overrides:
setReadOnlyin classStorageSettings- Parameters:
readOnly- the new read only, cannot benull.
-
getFeatureFilter
Unsupported method.- Overrides:
getFeatureFilterin classStorageSettings- Returns:
- the feature filter, cannot return
null.
-
setFeatureFilter
Unsupported method.- Overrides:
setFeatureFilterin classStorageSettings- Parameters:
featureFilter- the feature filter
-
getSettings
Unsupported method.- Overrides:
getSettingsin classStorageSettings- Returns:
- the settings
-
setSettings
Unsupported method.- Overrides:
setSettingsin classStorageSettings- Parameters:
settings- the settings
-
getRules
Gets the rules.- Returns:
- the rules, cannot return
null.
-
getRulesSettings
Gets the rules settings.- Returns:
- the rules settings, cannot return
null.
-
setRules
Sets the rules of the selecting storage ID to edit.- Parameters:
rules- the new rules, can benull.
-
setRules
Sets the rules of the selecting storage ID to edit.- Parameters:
rules- the rules, can benull.
-
addRule
Adds the new rule to the collection.- Parameters:
rule- the rule, cannot benull.
-
getStorages
Gets the storage list of the editing settings. This storages have priority over the rule-selection of storage id.- Returns:
- the storages, cannot return
null.
-
setStorages
Sets the storage list of the editing settings. This storages have priority over the rule-selection of storage id.- Parameters:
storages- the new storages, can benull.
-
getStorageIDs
Gets the storage IDs of the editing settings. This storages have priority over the rule-selection of storage id.- Returns:
- the storage IDs, cannot return
null.
-
allStorageIds
All storage IDs of all rules and this settings-level storages.- Returns:
- the list of storage IDs, cannot return
null.
-