Class GenerationResult

java.lang.Object
com.sap.cloud.sdk.datamodel.openapi.generator.model.GenerationResult

public class GenerationResult extends Object
Stores the result of the code generation performed by DataModelGenerator.
  • Constructor Details

    • GenerationResult

      public GenerationResult(@Nonnull List<File> generatedFiles, @Nullable String serviceName)
      Creates a GenerationResult based on a given list of generated files.
      Parameters:
      generatedFiles - The files resulting from the code generation
      serviceName - The name of the service, if present.
  • Method Details

    • getServiceName

      @Nonnull public io.vavr.control.Option<String> getServiceName()
      Get the service name, if present.
      Returns:
      An Option containing the service name, if present.
    • getGeneratedFiles

      public List<File> getGeneratedFiles()