Class RuleSettings

java.lang.Object
com.e1c.langtool.storage.model.RuleSettings

public final class RuleSettings extends Object
The rule settings of how to select a Storage ID from it's list of storag IDs. This model object is not allowed to modify after created project settings.
  • Constructor Details

    • RuleSettings

      public RuleSettings()
  • Method Details

    • getId

      public String getId()
      Gets the id of the rule.
      Returns:
      the id of the rule, can return null in model object not created properly.
    • setId

      public void setId(String id)
      Sets the id of the rule
      Parameters:
      id - the new id, should not be be null.
    • getStorages

      public StorageIdList getStorages()
      Gets the list of storage IDs.
      Returns:
      the list of storage IDs, cannot return null.
    • getStorageIds

      public List<StorageID> getStorageIds()
      Gets the list of storage IDs.
      Returns:
      the list of storage IDs, cannot return null.
    • setStorages

      public void setStorages(StorageIdList storages)
      Sets the list of storage IDs.
      Parameters:
      storages - the new list of storages, can be null.
    • getWhen

      public Map<String,String> getWhen()
      Gets the condition settings when this rule should be applied.
      Returns:
      the when condition settings, cannot return null.
    • setWhen

      public void setWhen(Map<String,String> when)
      Sets the condition settings when this rule should be applied.
      Parameters:
      when - the when condition settings, can be null.