Class StaticDocCodegen

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

    public class StaticDocCodegen
    extends DefaultCodegenConfig
    implements io.swagger.codegen.v3.CodegenConfig
    • Field Detail

      • invokerPackage

        protected String invokerPackage
      • groupId

        protected String groupId
      • artifactId

        protected String artifactId
      • artifactVersion

        protected String artifactVersion
      • sourceFolder

        protected String sourceFolder
    • Constructor Detail

      • StaticDocCodegen

        public StaticDocCodegen()
    • Method Detail

      • getTag

        public io.swagger.codegen.v3.CodegenType getTag()
        Specified by:
        getTag in interface io.swagger.codegen.v3.CodegenConfig
      • getName

        public String getName()
        Specified by:
        getName in interface io.swagger.codegen.v3.CodegenConfig
      • getHelp

        public String getHelp()
        Specified by:
        getHelp in interface io.swagger.codegen.v3.CodegenConfig
      • processOpts

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

        public String escapeReservedWord​(String name)
        Description copied from class: DefaultCodegenConfig
        Return the escaped name of the reserved word
        Specified by:
        escapeReservedWord in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        escapeReservedWord in class DefaultCodegenConfig
        Parameters:
        name - the name to be escaped
        Returns:
        the escaped reserved word throws Runtime exception as reserved word is not allowed (default behavior)
      • escapeQuotationMark

        public String escapeQuotationMark​(String input)
        Description copied from class: DefaultCodegenConfig
        Escape single and/or double quote to avoid code injection
        Specified by:
        escapeQuotationMark in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        escapeQuotationMark in class DefaultCodegenConfig
        Parameters:
        input - String to be cleaned up
        Returns:
        string with quotation mark removed or escaped
      • escapeUnsafeCharacters

        public String escapeUnsafeCharacters​(String input)
        Description copied from class: DefaultCodegenConfig
        override with any special text escaping logic to handle unsafe characters so as to avoid code injection
        Specified by:
        escapeUnsafeCharacters in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        escapeUnsafeCharacters in class DefaultCodegenConfig
        Parameters:
        input - String to be cleaned up
        Returns:
        string with unsafe characters removed or escaped