类 ModelBuilder
java.lang.Object
springfox.documentation.builders.ModelBuilder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Update the based modelbuild()description(String description) Update the description of the modeldiscriminator(String discriminator) Updates inheritance discriminator, used to identify inherited subclasses.Updates the Example for the model已过时。Updates the Id of the model, usually the type nameUpdates the Name of the modelproperties(Map<String, ModelProperty> properties) Updates the model propertiesqualifiedType(String qualifiedType) Fully package qualified name of the modelsubTypes(List<ModelReference> subTypes) Updates the subclasses for this model.type(com.fasterxml.classmate.ResolvedType modelType) Represents the type information with full fidelity of generics
-
构造器详细资料
-
ModelBuilder
public ModelBuilder()
-
-
方法详细资料
-
id
Updates the Id of the model, usually the type name- 参数:
id- - identifier for the model- 返回:
- this
-
name
Updates the Name of the model- 参数:
name- - name of the model- 返回:
- this
-
qualifiedType
Fully package qualified name of the model- 参数:
qualifiedType- - package qualified name- 返回:
- this
-
properties
Updates the model properties- 参数:
properties- - map of properties by name- 返回:
- this
-
description
Update the description of the model- 参数:
description- - description- 返回:
- this
-
baseModel
Update the based model- 参数:
baseModel- - based model as in inherited parent model. We currently don't implement this feature- 返回:
- this
-
discriminator
Updates inheritance discriminator, used to identify inherited subclasses. We currently don't implement this feature- 参数:
discriminator- - inheritance discriminator- 返回:
- this
-
subTypes
Updates the subclasses for this model.- 参数:
subTypes- - Models inheriting from this model- 返回:
- this
- 从以下版本开始:
- 2.8.1 We changed the subType to be a model refers
-
example
已过时。Updates the Example for the model- 参数:
example- - example of the model- 返回:
- this
- 从以下版本开始:
- 2.8.1 Use the one which takes in an Object instead
-
example
Updates the Example for the model- 参数:
example- - example of the model- 返回:
- this
- 从以下版本开始:
- 2.8.1
-
type
Represents the type information with full fidelity of generics- 参数:
modelType- - resolved type that represents the model- 返回:
- this
-
xml
-
build
-