Class EditSettings

java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
com.e1c.langtool.storage.model.EditSettings

public final class EditSettings extends StorageSettings
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:
  • Constructor Details

    • EditSettings

      public EditSettings()
  • Method Details

    • getId

      public String getId()
      Gets the id of this settings, always returns edit value.
      Overrides:
      getId in class StorageSettings
      Returns:
      the id
    • setId

      public void setId(String id)
      Unsupported method.
      Overrides:
      setId in class StorageSettings
      Parameters:
      id - the new id
    • getPresentation

      public String getPresentation()
      Gets the presentation.
      Overrides:
      getPresentation in class StorageSettings
      Returns:
      the presentation, cannot return null.
    • getStorageId

      public StorageID getStorageId()
      Gets the storage id.
      Overrides:
      getStorageId in class StorageSettings
      Returns:
      the storage id, cannot return null.
    • isReadOnly

      public boolean isReadOnly()
      Checks if the storage is read only.
      Overrides:
      isReadOnly in class StorageSettings
      Returns:
      always returns false
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Unsupported method.
      Overrides:
      setReadOnly in class StorageSettings
      Parameters:
      readOnly - the new read only, cannot be null.
    • getFeatureFilter

      public Map<String,FeatureSettingsFilter> getFeatureFilter()
      Unsupported method.
      Overrides:
      getFeatureFilter in class StorageSettings
      Returns:
      the feature filter, cannot return null.
    • setFeatureFilter

      public void setFeatureFilter(Map<String,FeatureSettingsFilter> featureFilter)
      Unsupported method.
      Overrides:
      setFeatureFilter in class StorageSettings
      Parameters:
      featureFilter - the feature filter
    • getSettings

      public Map<String,String> getSettings()
      Unsupported method.
      Overrides:
      getSettings in class StorageSettings
      Returns:
      the settings
    • setSettings

      public void setSettings(Map<String,String> settings)
      Unsupported method.
      Overrides:
      setSettings in class StorageSettings
      Parameters:
      settings - the settings
    • getRules

      public Map<String,RuleSettings> getRules()
      Gets the rules.
      Returns:
      the rules, cannot return null.
    • getRulesSettings

      public Collection<RuleSettings> getRulesSettings()
      Gets the rules settings.
      Returns:
      the rules settings, cannot return null.
    • setRules

      public void setRules(List<RuleSettings> rules)
      Sets the rules of the selecting storage ID to edit.
      Parameters:
      rules - the new rules, can be null.
    • setRules

      public void setRules(Map<String,RuleSettings> rules)
      Sets the rules of the selecting storage ID to edit.
      Parameters:
      rules - the rules, can be null.
    • addRule

      public void addRule(RuleSettings rule)
      Adds the new rule to the collection.
      Parameters:
      rule - the rule, cannot be null.
    • getStorages

      public StorageIdList 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

      public void setStorages(StorageIdList storages)
      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 be null.
    • getStorageIDs

      public List<StorageID> 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

      public List<StorageID> allStorageIds()
      All storage IDs of all rules and this settings-level storages.
      Returns:
      the list of storage IDs, cannot return null.