Class JavaInflectorServerCodegen

  • All Implemented Interfaces:
    io.swagger.codegen.v3.CodegenConfig

    public class JavaInflectorServerCodegen
    extends AbstractJavaCodegen
    • Field Detail

      • title

        protected String title
      • implFolder

        protected String implFolder
    • Constructor Detail

      • JavaInflectorServerCodegen

        public JavaInflectorServerCodegen()
    • Method Detail

      • getTag

        public io.swagger.codegen.v3.CodegenType getTag()
      • getName

        public String getName()
      • getHelp

        public String getHelp()
      • processOpts

        public void processOpts()
        Specified by:
        processOpts in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        processOpts in class AbstractJavaCodegen
      • addOperationToGroup

        public void addOperationToGroup​(String tag,
                                        String resourcePath,
                                        io.swagger.v3.oas.models.Operation operation,
                                        io.swagger.codegen.v3.CodegenOperation co,
                                        Map<String,​List<io.swagger.codegen.v3.CodegenOperation>> operations)
        Description copied from class: DefaultCodegenConfig
        Add operation to group
        Specified by:
        addOperationToGroup in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        addOperationToGroup in class DefaultCodegenConfig
        Parameters:
        tag - name of the tag
        resourcePath - path of the resource
        operation - Swagger Operation object
        co - Codegen Operation object
        operations - map of Codegen operations
      • postProcessModelProperty

        public void postProcessModelProperty​(io.swagger.codegen.v3.CodegenModel model,
                                             io.swagger.codegen.v3.CodegenProperty property)
        Specified by:
        postProcessModelProperty in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        postProcessModelProperty in class AbstractJavaCodegen
      • getOrGenerateOperationId

        protected String getOrGenerateOperationId​(io.swagger.v3.oas.models.Operation operation,
                                                  String path,
                                                  String httpMethod)
        Description copied from class: DefaultCodegenConfig
        Get operationId from the operation object, and if it's blank, generate a new one from the given parameters.
        Overrides:
        getOrGenerateOperationId in class DefaultCodegenConfig
        Parameters:
        operation - the operation object
        path - the path of the operation
        httpMethod - the HTTP method of the operation
        Returns:
        the (generated) operationId
      • setLanguageArguments

        public void setLanguageArguments​(List<io.swagger.codegen.v3.CodegenArgument> languageArguments)
        Specified by:
        setLanguageArguments in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        setLanguageArguments in class AbstractJavaCodegen
      • toApiName

        public String toApiName​(String name)
        Description copied from class: DefaultCodegenConfig
        Output the API (class) name (capitalized) ending with "Api" Return DefaultApi if name is empty
        Specified by:
        toApiName in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        toApiName in class AbstractJavaCodegen
        Parameters:
        name - the name of the Api
        Returns:
        capitalized Api name ending with "Api"