public abstract class AbstractFileOutputResourceGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
outputDirectory |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileOutputResourceGenerator(String outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
createFilePath(String operation,
int status,
String contentType,
String name,
String optionalDescription)
Returns the file path/name based on the incoming parameters.
|
void |
generateResources(ResourceGeneratorParams params)
Generates resources based on the incoming object.
|
protected String |
getFolderName()
Returns the containing folder.
|
protected final String outputDirectory
protected AbstractFileOutputResourceGenerator(String outputDirectory)
public void generateResources(ResourceGeneratorParams params) throws IOException
Files are going to be created based on the operation and its dependencies.
params - parameter object with all necessary information.IOException - when resource/file generation fails.protected abstract String createFilePath(String operation, int status, String contentType, String name, String optionalDescription)
protected String getFolderName()
operation - operation's name.Copyright © 2022–2023 Rodnan Sol. All rights reserved.