存放字段属性信息
package com.opslab.util.bean;
import java.lang.reflect.Method;
/**
* 存放字段属性信息
*/
public class BeanStruct {
//字段的名字
private String fieldName;
//字段的类型
private Object fieldType;
//字段值读方法
private Method readMethod;
//字段值写方法
private Method writeMethod;
private boolean isDeclared;
public BeanStruct(String fieldName, Object fieldType, Method readMethod, Method writeMethod, boolean isDeclared) {
this.fieldName = fieldName;
this.fieldType = fieldType;
this.readMethod = readMethod;
this.writeMethod = writeMethod;
}
public boolean isDeclared() {
return isDeclared;
}
public void setDeclared(boolean isDeclared) {
this.isDeclared = isDeclared;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public Object getFieldType() {
return fieldType;
}
public void setFieldType(Object fieldType) {
this.fieldType = fieldType;
}
public Method getReadMethod() {
return readMethod;
}
public void setReadMethod(Method readMethod) {
this.readMethod = readMethod;
}
public Method getWriteMethod() {
return writeMethod;
}
public void setWriteMethod(Method writeMethod) {
this.writeMethod = writeMethod;
}
}
相关文章
- JSONObjec序列化对象过滤为null的属性
- 如何利用python读取图片属性信息
- 第102章 属性关键字 - Internal
- 微信小程序 - [警告] 设置 enable-flex 属性以使 flexbox 布局生效(解决方案)
- 使用jQuery异步传递含复杂属性及集合属性的Model到控制器方法
- ConcurrentHashMap源码解析_01 成员属性、内部类、构造方法分析
- c# 属性说明
- JS魔法堂:被玩坏的innerHTML、innerText、textContent和value属性
- Android View体系(三)属性动画
- js中的问题(this)(遍历对象中的属性)
- EF 序列化实体为Json时的循环引用问题(不用自己写实体,不用匿名类型,不用EF的上下文属性)