Package ru.yojo.codegen.context
Class SpecificationProperties
java.lang.Object
ru.yojo.codegen.context.SpecificationProperties
Holds configuration for a single AsyncAPI specification to be processed.
Used by
YojoGenerator in multi-spec scenarios.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty specification properties instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the input directory path (where the YAML file resides).Returns the output directory path (where Java files will be generated).Returns the base Java package location.Returns the specification filename (e.g.,"test.yaml").voidsetInputDirectory(String inputDirectory) Sets the input directory path.voidsetOutputDirectory(String outputDirectory) Sets the output directory path.voidsetPackageLocation(String packageLocation) Sets the base Java package location.voidsetSpecName(String specName) Sets the specification filename.
-
Constructor Details
-
SpecificationProperties
public SpecificationProperties()Constructs an empty specification properties instance.
-
-
Method Details
-
getSpecName
Returns the specification filename (e.g.,"test.yaml").- Returns:
- specification name
-
setSpecName
Sets the specification filename.- Parameters:
specName- filename, e.g.,"test.yaml"
-
getInputDirectory
Returns the input directory path (where the YAML file resides).- Returns:
- input directory path
-
setInputDirectory
Sets the input directory path.- Parameters:
inputDirectory- path to input directory
-
getOutputDirectory
Returns the output directory path (where Java files will be generated).- Returns:
- output directory path
-
setOutputDirectory
Sets the output directory path.- Parameters:
outputDirectory- path to output directory
-
getPackageLocation
Returns the base Java package location.- Returns:
- base package, e.g.,
"com.example.api"
-
setPackageLocation
Sets the base Java package location.- Parameters:
packageLocation- package name (without trailing dot or subpackages)
-