Package org.progettoedids.repositories
Class SaveStringRepository
java.lang.Object
org.progettoedids.repositories.SaveStringRepository
SaveStringRepository holds factory methods that produce objects implementing the SaveStringProducer or SaveStringReader interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaveStringProducergetProduceSaveString(String fileFormat) Returns an object implementing the SaveStringProducer interface based on a format.static SaveStringReadergetReadSaveString(String fileFormat) Returns an object implementing the SaveStringReader interface based on a format.
-
Constructor Details
-
SaveStringRepository
public SaveStringRepository()
-
-
Method Details
-
getProduceSaveString
Returns an object implementing the SaveStringProducer interface based on a format.- Parameters:
fileFormat- A String containing a supported file format. Must not be null- Returns:
- an object of type SaveStringProducer which was just created
- Throws:
IllegalArgumentException- if the format isn't supported
-
getReadSaveString
Returns an object implementing the SaveStringReader interface based on a format.- Parameters:
fileFormat- A String containing a supported file format. Must not be null- Returns:
- an object of type SaveStringReader which was just created
- Throws:
IllegalArgumentException- if the format isn't supported
-