Class SpecificationProperties

java.lang.Object
ru.yojo.codegen.context.SpecificationProperties

public class SpecificationProperties extends Object
Holds configuration for a single AsyncAPI specification to be processed. Used by YojoGenerator in multi-spec scenarios.
  • Constructor Details

    • SpecificationProperties

      public SpecificationProperties()
      Constructs an empty specification properties instance.
  • Method Details

    • getSpecName

      public String getSpecName()
      Returns the specification filename (e.g., "test.yaml").
      Returns:
      specification name
    • setSpecName

      public void setSpecName(String specName)
      Sets the specification filename.
      Parameters:
      specName - filename, e.g., "test.yaml"
    • getInputDirectory

      public String getInputDirectory()
      Returns the input directory path (where the YAML file resides).
      Returns:
      input directory path
    • setInputDirectory

      public void setInputDirectory(String inputDirectory)
      Sets the input directory path.
      Parameters:
      inputDirectory - path to input directory
    • getOutputDirectory

      public String getOutputDirectory()
      Returns the output directory path (where Java files will be generated).
      Returns:
      output directory path
    • setOutputDirectory

      public void setOutputDirectory(String outputDirectory)
      Sets the output directory path.
      Parameters:
      outputDirectory - path to output directory
    • getPackageLocation

      public String getPackageLocation()
      Returns the base Java package location.
      Returns:
      base package, e.g., "com.example.api"
    • setPackageLocation

      public void setPackageLocation(String packageLocation)
      Sets the base Java package location.
      Parameters:
      packageLocation - package name (without trailing dot or subpackages)