org.soybeanMilk.core.bean
类 PropertyInfo

java.lang.Object
  继承者 org.soybeanMilk.core.bean.PropertyInfo

public class PropertyInfo
extends java.lang.Object

Class类型的属性信息封装类

作者:
earthAngry@gmail.com

方法摘要
 void addSubPropertyInfo(java.lang.String name, PropertyInfo propertyInfo)
          添加子属性类信息
 java.lang.reflect.Type getGenericType()
           
static PropertyInfo getPropertyInfo(java.lang.Class<?> beanClass)
          获取类的属性信息,一个仅包含propertyType属性(值为参数beanClass)的PropertyInfo对象将被返回,用作顶层对象。
 java.lang.reflect.Method getReadMethod()
           
 PropertyInfo getSubPropertyInfo(java.lang.String name)
          取得此类型的某个属性信息
 java.util.Map<java.lang.String,PropertyInfo> getSubPropertyInfos()
           
 java.lang.Class<?> getType()
           
 java.lang.reflect.Method getWriteMethod()
           
 boolean hasSubPropertyInfo()
          是否有子属性信息
 void setGenericType(java.lang.reflect.Type genericType)
           
 void setReadMethod(java.lang.reflect.Method readMethod)
           
 void setSubPropertyInfos(java.util.Map<java.lang.String,PropertyInfo> subPropertyInfos)
           
 void setType(java.lang.Class<?> type)
           
 void setWriteMethod(java.lang.reflect.Method writeMethod)
           
 java.lang.String toString()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

方法详细信息

getType

public java.lang.Class<?> getType()

setType

public void setType(java.lang.Class<?> type)

getGenericType

public java.lang.reflect.Type getGenericType()

setGenericType

public void setGenericType(java.lang.reflect.Type genericType)

getSubPropertyInfos

public java.util.Map<java.lang.String,PropertyInfo> getSubPropertyInfos()

setSubPropertyInfos

public void setSubPropertyInfos(java.util.Map<java.lang.String,PropertyInfo> subPropertyInfos)

getReadMethod

public java.lang.reflect.Method getReadMethod()

setReadMethod

public void setReadMethod(java.lang.reflect.Method readMethod)

getWriteMethod

public java.lang.reflect.Method getWriteMethod()

setWriteMethod

public void setWriteMethod(java.lang.reflect.Method writeMethod)

addSubPropertyInfo

public void addSubPropertyInfo(java.lang.String name,
                               PropertyInfo propertyInfo)
添加子属性类信息

参数:
name -
propertyInfo -

getSubPropertyInfo

public PropertyInfo getSubPropertyInfo(java.lang.String name)
取得此类型的某个属性信息

参数:
name - 属性名
返回:

hasSubPropertyInfo

public boolean hasSubPropertyInfo()
是否有子属性信息

返回:

toString

public java.lang.String toString()
覆盖:
java.lang.Object 中的 toString

getPropertyInfo

public static PropertyInfo getPropertyInfo(java.lang.Class<?> beanClass)
获取类的属性信息,一个仅包含propertyType属性(值为参数beanClass)的PropertyInfo对象将被返回,用作顶层对象。

参数:
beanClass -
返回: