Class PropertyResolverUtils

java.lang.Object
org.springdoc.core.utils.PropertyResolverUtils

public class PropertyResolverUtils extends Object
The type Property resolver utils.
Author:
bnasslahsen
  • Constructor Details

    • PropertyResolverUtils

      public PropertyResolverUtils(org.springframework.beans.factory.config.ConfigurableBeanFactory factory, org.springframework.context.MessageSource messageSource, SpringDocConfigProperties springDocConfigProperties)
      Instantiates a new Property resolver utils.
      Parameters:
      factory - the factory
      messageSource - the message source
      springDocConfigProperties - the spring doc config properties
  • Method Details

    • resolve

      public String resolve(String parameterProperty, Locale locale)
      Resolve string.
      Parameters:
      parameterProperty - the parameter property
      locale - the locale
      Returns:
      the string
    • trimIndent

      public String trimIndent(String text)
      Returns a string where all leading indentation has been removed from each line. It detects the smallest common indentation of all the lines in the input string, and removes it. If the input text is null, the method returns null.
      Parameters:
      text - The original string with possible leading indentation.
      Returns:
      The string with the smallest common leading indentation removed from each line, or null if the input text is null.
    • getFactory

      public org.springframework.beans.factory.config.ConfigurableBeanFactory getFactory()
      Gets factory.
      Returns:
      the factory
    • getSpringDocConfigProperties

      public SpringDocConfigProperties getSpringDocConfigProperties()
      Gets spring doc config properties.
      Returns:
      the spring doc config properties
    • getSpecVersion

      public io.swagger.v3.oas.models.SpecVersion getSpecVersion()
      Gets spec version.
      Returns:
      the spec version
    • isOpenapi31

      public boolean isOpenapi31()
      Is openapi 31 boolean.
      Returns:
      the boolean
    • isResolveExtensionsProperties

      public boolean isResolveExtensionsProperties()
      Is resolve extensions properties boolean.
      Returns:
      the boolean
    • resolveExtensions

      public Map<String,Object> resolveExtensions(Locale locale, Map<String,Object> extensions)
      Resolve extensions map.
      Parameters:
      locale - the locale
      extensions - the extensions
      Returns:
      the map