public class ReadBeanOperator extends Object implements ReadBeanCondition, ReadBeanDescription, ReadBeanIgnore, ReadBeanJavaType, ReadBeanMockTemplate, ReadBeanName, ReadBeanParams, ReadBeanRenewType, ReadBeanRequired, ReadBeanShow, ReadBeanType
| 构造器和说明 |
|---|
ReadBeanOperator(ReadBeanConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
conditions(Type type,
GenericTypeBind bind,
ApiExtra extra)
参数校验,返回el表达式
|
String |
description(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean字段说明
|
Boolean |
ignore(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean属性是否忽略
|
JavaType |
javaType(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean类型
|
String |
mockTemplate(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean的mock数据
|
String |
name(Field field,
GenericTypeBind bind,
ApiExtra extra)
字段名称
|
List<FieldParam> |
params(Class modelClass,
GenericTypeBind bind,
ApiExtra extra) |
RenewType |
renewType(Type type,
GenericTypeBind bind,
ApiExtra extra)
更新策略
|
Boolean |
required(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean属性是否必须
|
Boolean |
show(Type type,
GenericTypeBind bind,
ApiExtra extra)
读取实体bean属性是否显示
|
Type |
type(Field field,
GenericTypeBind bind,
ApiExtra extra)
将实体bean的类型转换为其他类型进行解析
|
public ReadBeanOperator(ReadBeanConfig config)
public List<String> conditions(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanConditionconditions 在接口中 ReadBeanConditionpublic String description(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanDescriptiondescription 在接口中 ReadBeanDescriptionpublic Boolean ignore(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanIgnoreignore 在接口中 ReadBeanIgnorepublic JavaType javaType(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanJavaTypejavaType 在接口中 ReadBeanJavaTypetype - 实体bean类型public String mockTemplate(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanMockTemplatemockTemplate 在接口中 ReadBeanMockTemplatepublic String name(Field field, GenericTypeBind bind, ApiExtra extra)
ReadBeanNamename 在接口中 ReadBeanNamefield - 字段bind - 绑定的泛型extra - 冗余信息public List<FieldParam> params(Class modelClass, GenericTypeBind bind, ApiExtra extra)
params 在接口中 ReadBeanParamspublic RenewType renewType(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanRenewTyperenewType 在接口中 ReadBeanRenewTypepublic Boolean required(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanRequiredrequired 在接口中 ReadBeanRequiredpublic Boolean show(Type type, GenericTypeBind bind, ApiExtra extra)
ReadBeanShowshow 在接口中 ReadBeanShowpublic Type type(Field field, GenericTypeBind bind, ApiExtra extra)
ReadBeanTypetype 在接口中 ReadBeanTypeCopyright © 2022. All rights reserved.