com.vaadin.fusion.generator.
Class MainGenerator
- java.lang.Object
-
- com.vaadin.fusion.generator.MainGenerator
-
public class MainGenerator extends Object
Performs the generation of TypeScript files for endpoints, Client API file and endpoint barrel file based on the data from the OpenAPI json. Generation occurs in the directory specified, overwriting the files and creating the target directory, if necessary.
-
-
Field Summary
Fields Modifier and Type Field and Description static String
MODEL
static String
MODEL_TS
static String
OPTIONAL_SUFFIX
static String
TS
-
Constructor Summary
Constructors Constructor and Description MainGenerator(File openApiJsonFile, File outputDirectory)
Initializes the generator.
MainGenerator(File openApiJsonFile, File outputDirectory, Properties properties)
Initializes the generator.
MainGenerator(File openApiJsonFile, File outputDirectory, Properties properties, String defaultClientPath)
Initializes the generator.
MainGenerator(File openApiJsonFile, File outputDirectory, String defaultClientPath)
Initializes the generator.
-
-
-
Field Detail
-
MODEL
public static final String MODEL
See Also:
-
OPTIONAL_SUFFIX
public static final String OPTIONAL_SUFFIX
See Also:
-
TS
public static final String TS
See Also:
-
MODEL_TS
public static final String MODEL_TS
See Also:
-
-
Constructor Detail
-
MainGenerator
public MainGenerator(File openApiJsonFile, File outputDirectory)
Initializes the generator.
Parameters:
openApiJsonFile
- the api spec file to analyzeoutputDirectory
- the directory to generate the files into
-
MainGenerator
public MainGenerator(File openApiJsonFile, File outputDirectory, Properties properties)
Initializes the generator.
Parameters:
openApiJsonFile
- the api spec file to analyzeoutputDirectory
- the directory to generate the files intoproperties
- the properties with the data required for the Client API file generation
-
MainGenerator
public MainGenerator(File openApiJsonFile, File outputDirectory, String defaultClientPath)
Initializes the generator.
Parameters:
openApiJsonFile
- the api spec file to analyzeoutputDirectory
- the directory to generate the files intodefaultClientPath
- the path of the default Client API file which is imported in the generated files.
-
MainGenerator
public MainGenerator(File openApiJsonFile, File outputDirectory, Properties properties, String defaultClientPath)
Initializes the generator.
Parameters:
openApiJsonFile
- the api spec file to analyzeoutputDirectory
- the directory to generate the files intoproperties
- the properties with the data required for the Client API file generationdefaultClientPath
- the path of the default Client API file which is imported in the generated files.
-
-