Package org.springdoc.core
Class ParameterInfo
- java.lang.Object
-
- org.springdoc.core.ParameterInfo
-
public class ParameterInfo extends Object
The type Parameter info.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description ParameterInfo(String pName, org.springframework.core.MethodParameter methodParameter, GenericParameterService genericParameterService, Locale locale)Instantiates a new Parameter info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDefaultValue()Gets default value.org.springframework.core.MethodParametergetMethodParameter()Gets method parameter.ParametergetParameter()Gets parameter.io.swagger.v3.oas.models.parameters.ParametergetParameterModel()Gets parameter model.StringgetParamType()Gets param type.StringgetpName()Gets name.booleanisRequestPart()Is request part boolean.booleanisRequired()Is required boolean.voidsetDefaultValue(Object defaultValue)Sets default value.voidsetParameterModel(io.swagger.v3.oas.models.parameters.Parameter parameterModel)Sets parameter model.voidsetParamType(String paramType)Sets param type.voidsetpName(String pName)Sets name.voidsetRequestPart(boolean requestPart)Sets request part.voidsetRequired(boolean required)Sets required.
-
-
-
Constructor Detail
-
ParameterInfo
public ParameterInfo(String pName, org.springframework.core.MethodParameter methodParameter, GenericParameterService genericParameterService, Locale locale)
Instantiates a new Parameter info.- Parameters:
pName- the parameter namemethodParameter- the method parametergenericParameterService- the parameter builderlocale- the locale
-
-
Method Detail
-
getpName
public String getpName()
Gets name.- Returns:
- the name
-
setpName
public void setpName(String pName)
Sets name.- Parameters:
pName- the p name
-
getMethodParameter
public org.springframework.core.MethodParameter getMethodParameter()
Gets method parameter.- Returns:
- the method parameter
-
getParameter
public Parameter getParameter()
Gets parameter.- Returns:
- the parameter
-
getParameterModel
public io.swagger.v3.oas.models.parameters.Parameter getParameterModel()
Gets parameter model.- Returns:
- the parameter model
-
setParameterModel
public void setParameterModel(io.swagger.v3.oas.models.parameters.Parameter parameterModel)
Sets parameter model.- Parameters:
parameterModel- the parameter model
-
isRequired
public boolean isRequired()
Is required boolean.- Returns:
- the boolean
-
getDefaultValue
public Object getDefaultValue()
Gets default value.- Returns:
- the default value
-
getParamType
public String getParamType()
Gets param type.- Returns:
- the param type
-
setParamType
public void setParamType(String paramType)
Sets param type.- Parameters:
paramType- the param type
-
setRequired
public void setRequired(boolean required)
Sets required.- Parameters:
required- the required
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
Sets default value.- Parameters:
defaultValue- the default value
-
isRequestPart
public boolean isRequestPart()
Is request part boolean.- Returns:
- the boolean
-
setRequestPart
public void setRequestPart(boolean requestPart)
Sets request part.- Parameters:
requestPart- the request part
-
-