Class JavaHelidonCommonCodegen

    • Constructor Detail

      • JavaHelidonCommonCodegen

        public JavaHelidonCommonCodegen()
    • Method Detail

      • fromOperation

        public CodegenOperation fromOperation​(String path,
                                              String httpMethod,
                                              io.swagger.v3.oas.models.Operation operation,
                                              List<io.swagger.v3.oas.models.servers.Server> servers)
        Description copied from class: DefaultCodegen
        Convert OAS Operation object to Codegen Operation object
        Specified by:
        fromOperation in interface CodegenConfig
        Overrides:
        fromOperation in class AbstractJavaCodegen
        Parameters:
        path - the path of the operation
        httpMethod - HTTP method
        operation - OAS operation object
        servers - list of servers
        Returns:
        Codegen Operation object
      • removeUnusedOptions

        protected void removeUnusedOptions()
        Remove set of options not currently used by any Helidon generator. Should be called during construction but only on leaf classes.
      • processSupportingFiles

        protected void processSupportingFiles​(List<SupportingFile> modifiable,
                                              List<SupportingFile> unmodifiable)
        Determine whether to generate or overwrite files depending on fullProject property. If property is unspecified, then check if sources are already there and avoid overwriting modifiable files.
        Parameters:
        modifiable - list of modifiable files to be processed
        unmodifiable - list of unmodifiable files to be processed
      • projectFilesExist

        protected boolean projectFilesExist()
        Check if project is already generated to determine default for the fullProject flag. Can be overridden in subclasses to strengthen test condition.
        Returns:
        outcome of test
      • rootJavaEEPackage

        protected String rootJavaEEPackage()
      • removeCliOptions

        protected void removeCliOptions​(String... opt)