Class PropertyResolverUtils


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

      • 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 Detail

      • resolve

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

        public List<io.swagger.v3.oas.models.servers.Server> resolveProperties​(List<io.swagger.v3.oas.models.servers.Server> servers,
                                                                               Locale locale)
        Resolve properties info.
        Parameters:
        servers - the servers
        locale - the locale
        Returns:
        the servers
      • resolveProperties

        public io.swagger.v3.oas.models.info.Info resolveProperties​(io.swagger.v3.oas.models.info.Info info,
                                                                    Locale locale)
        Resolve properties info.
        Parameters:
        info - the info
        locale - the locale
        Returns:
        the info
      • resolveProperties

        public io.swagger.v3.oas.models.media.Schema resolveProperties​(io.swagger.v3.oas.models.media.Schema<?> schema,
                                                                       Locale locale)
        Resolve properties schema.
        Parameters:
        schema - the schema
        locale - the locale
        Returns:
        the schema
      • getFactory

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