Class OpenApiEnricherHandler

java.lang.Object
net.binis.codegen.enrich.handler.base.BaseEnricher
net.binis.codegen.enrich.handler.OpenApiEnricherHandler
All Implemented Interfaces:
net.binis.codegen.enrich.Enricher, net.binis.codegen.enrich.OpenApiEnricher, PrototypeEnricher

public class OpenApiEnricherHandler extends BaseEnricher implements net.binis.codegen.enrich.OpenApiEnricher
  • Field Details

    • IS_OPENAPI_AVAILABLE

      protected static final boolean IS_OPENAPI_AVAILABLE
  • Constructor Details

    • OpenApiEnricherHandler

      public OpenApiEnricherHandler()
  • Method Details

    • enrich

      public void enrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description)
      Specified by:
      enrich in interface PrototypeEnricher
      Overrides:
      enrich in class BaseEnricher
    • order

      public int order()
      Specified by:
      order in interface PrototypeEnricher
    • finalizeEnrich

      public void finalizeEnrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description)
      Specified by:
      finalizeEnrich in interface PrototypeEnricher
      Overrides:
      finalizeEnrich in class BaseEnricher
    • enrichField

      protected void enrichField(PrototypeField field)
    • generateEnumSchema

      protected <T> void generateEnumSchema(Stream<T> enumEntries, Function<T,String> getEnumName, com.github.javaparser.ast.expr.NormalAnnotationExpr schemaAnnotation)
    • checkForDefaultValue

      protected void checkForDefaultValue(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann)
    • checkForRange

      protected void checkForRange(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann)
    • checkForLength

      protected void checkForLength(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann)
    • generate

      protected boolean generate(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description)
    • strip

      protected com.github.javaparser.ast.expr.StringLiteralExpr strip(com.github.javaparser.ast.expr.Expression value)