Package net.binis.codegen.enrich.handler
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 Summary
FieldsFields inherited from class net.binis.codegen.enrich.handler.base.BaseEnricher
lookup, parser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckForDefaultValue(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann) protected voidcheckForLength(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann) protected voidcheckForRange(PrototypeField field, com.github.javaparser.ast.expr.NormalAnnotationExpr ann) voidenrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) protected voidenrichField(PrototypeField field) voidfinalizeEnrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) protected booleangenerate(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) protected <T> voidgenerateEnumSchema(Stream<T> enumEntries, Function<T, String> getEnumName, com.github.javaparser.ast.expr.NormalAnnotationExpr schemaAnnotation) intorder()protected com.github.javaparser.ast.expr.StringLiteralExprstrip(com.github.javaparser.ast.expr.Expression value) Methods inherited from class net.binis.codegen.enrich.handler.base.BaseEnricher
dependencies, enrichElement, error, error, init, note, note, postProcess, safeEnrichElement, setup, warn, warn
-
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:
enrichin interfacePrototypeEnricher- Overrides:
enrichin classBaseEnricher
-
order
public int order()- Specified by:
orderin interfacePrototypeEnricher
-
finalizeEnrich
public void finalizeEnrich(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description) - Specified by:
finalizeEnrichin interfacePrototypeEnricher- Overrides:
finalizeEnrichin classBaseEnricher
-
enrichField
-
generateEnumSchema
-
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)
-