Class CodegenModelFactory

java.lang.Object
io.swagger.codegen.v3.CodegenModelFactory

public final class CodegenModelFactory extends Object
  • Constructor Details

    • CodegenModelFactory

      public CodegenModelFactory()
  • Method Details

    • setTypeMapping

      public static void setTypeMapping(CodegenModelType type, Class<?> implementation)
      Configure a different implementation class.
      Parameters:
      type - the type that shall be replaced
      implementation - the implementation class must extend the default class and must provide a public no-arg constructor
    • newInstance

      public static <T> T newInstance(CodegenModelType type)