Package org.springdoc.core.utils
Class PropertyResolverUtils
java.lang.Object
org.springdoc.core.utils.PropertyResolverUtils
The type Property resolver utils.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorDescriptionPropertyResolverUtils
(org.springframework.beans.factory.config.ConfigurableBeanFactory factory, org.springframework.context.MessageSource messageSource, SpringDocConfigProperties springDocConfigProperties) Instantiates a new Property resolver utils. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.ConfigurableBeanFactory
Gets factory.Gets spring doc config properties.Resolve string.io.swagger.v3.oas.models.info.Info
resolveProperties
(io.swagger.v3.oas.models.info.Info info, Locale locale) Resolve properties info.io.swagger.v3.oas.models.media.Schema
resolveProperties
(io.swagger.v3.oas.models.media.Schema<?> schema, Locale locale) Resolve properties schema.List<io.swagger.v3.oas.models.servers.Server>
resolveProperties
(List<io.swagger.v3.oas.models.servers.Server> servers, Locale locale) Resolve properties info.
-
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 factorymessageSource
- the message sourcespringDocConfigProperties
- the spring doc config properties
-
-
Method Details
-
resolve
Resolve string.- Parameters:
parameterProperty
- the parameter propertylocale
- 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 serverslocale
- 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 infolocale
- 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 schemalocale
- the locale- Returns:
- the schema
-
getFactory
public org.springframework.beans.factory.config.ConfigurableBeanFactory getFactory()Gets factory.- Returns:
- the factory
-
getSpringDocConfigProperties
Gets spring doc config properties.- Returns:
- the spring doc config properties
-