Class BaseCollector

java.lang.Object
io.github.torand.openapi2java.collectors.BaseCollector
Direct Known Subclasses:
EnumInfoCollector, MethodInfoCollector, OpenApiDefInfoCollector, PojoInfoCollector, PropertyInfoCollector, ResourceInfoCollector, SecurityRequirementCollector, TypeInfoCollector

public abstract class BaseCollector extends Object
Base class for all collectors.
  • Field Details

    • opts

      protected final Options opts
  • Constructor Details

    • BaseCollector

      protected BaseCollector(Options opts)
  • Method Details

    • normalizeDescription

      protected String normalizeDescription(String description)
    • normalizePath

      protected String normalizePath(String path)
    • dirPath2PackagePath

      protected String dirPath2PackagePath(String dirPath)
    • modelName2SchemaName

      protected String modelName2SchemaName(String modelName)
    • formatClassRef

      protected String formatClassRef(String className)
    • formatInnerAnnotation

      protected String formatInnerAnnotation(String annotation, Object... args)
    • formatAnnotationDefaultParam

      protected String formatAnnotationDefaultParam(List<String> value)
    • formatAnnotationNamedParam

      protected String formatAnnotationNamedParam(List<String> value)
    • formatDeprecationMessage

      protected String formatDeprecationMessage(Map<String,Object> extensions)