Class ResourceStorageSettings

java.lang.Object
com.e1c.langtool.storage.model.StorageSettings
com.e1c.langtool.storage.model.ResourceStorageSettings
Direct Known Subclasses:
ContextStorageSettings, DictionaryStorageSettings

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

    • ResourceStorageSettings

      public ResourceStorageSettings()
  • Method Details

    • getStorageId

      public StorageID getStorageId()
      Subclasses must override this method to provide correct storage ID
      Overrides:
      getStorageId in class StorageSettings
      Returns:
      the storage id
      Throws:
      UnsupportedOperationException
    • getFormat

      public String getFormat()
      Gets the format of the storage files.
      Returns:
      the format of storage files, should not return null.
    • setFormat

      public void setFormat(String format)
      Sets the format of storage files.
      Parameters:
      format - the new format, should not be null.
    • getFileExtension

      public String getFileExtension()
      Gets the file extension.
      Returns:
      the file extension, should not return null.
    • setFileExtension

      public void setFileExtension(String fileExtension)
      Sets the file extension.
      Parameters:
      fileExtension - the new file extension, should not be null.