Class SourceGeneratorConfigBuilder
java.lang.Object
io.micronaut.jsonschema.generator.utils.SourceGeneratorConfigBuilder
A builder class for the
SourceGeneratorConfig; encapsulating the configuration
properties related to the input and output paths; file names; and URL.- Author:
- Elif Kurtay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withInputFolder(Path inputFolder) Adds the input folder of json schema.withInputStream(InputStream inputStream) Adds the input stream config.withJsonFile(File jsonFile) Adds the File of a json schema.withJsonUrl(String jsonUrl) Adds the URL of a json schema.withOutputFileName(String outputFileName) Adds the desired file name for single generations.withOutputFolder(Path outputFolder) Adds the Output path for the generated files.withOutputPackageName(String outputPackageName) Adds the Package name for generated files.
-
Constructor Details
-
SourceGeneratorConfigBuilder
public SourceGeneratorConfigBuilder()
-
-
Method Details
-
build
- Returns:
SourceGeneratorConfig
-
withInputStream
Adds the input stream config.- Parameters:
inputStream- Input stream of a json schema- Returns:
- SourceGeneratorConfigBuilder
-
withJsonUrl
Adds the URL of a json schema.- Parameters:
jsonUrl- URL of a json schema- Returns:
- SourceGeneratorConfigBuilder
-
withJsonFile
Adds the File of a json schema.- Parameters:
jsonFile- File of a json schema- Returns:
- SourceGeneratorConfigBuilder
-
withInputFolder
Adds the input folder of json schema.- Parameters:
inputFolder- Input folder of json schema- Returns:
- SourceGeneratorConfigBuilder
-
withOutputFolder
Adds the Output path for the generated files.- Parameters:
outputFolder- Output path for the generated files- Returns:
- SourceGeneratorConfigBuilder
-
withOutputPackageName
Adds the Package name for generated files.- Parameters:
outputPackageName- Package name for generated files- Returns:
- SourceGeneratorConfigBuilder
-
withOutputFileName
Adds the desired file name for single generations.- Parameters:
outputFileName- desired file name for single generations- Returns:
- SourceGeneratorConfigBuilder
-