public class DyBeanImpl extends AbstractBeanPropertyAccessor implements DyBean
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
DyBeanImpl.BeanPropertyHandle |
| 限定符和类型 | 字段和说明 |
|---|---|
protected CachedIntrospectionResults |
cachedIntrospectionResults |
allowCollectionAutoGrow, allowCreateHoldValueIfNull| 构造器和说明 |
|---|
DyBeanImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected CachedIntrospectionResults |
getCachedIntrospectionResults() |
java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyName)
根据属性名称获取属性描述
|
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
获取属性描述集合
|
protected AbstractBeanPropertyAccessor.PropertyHandle |
getPropertyHandle(java.lang.String propertyName)
获取属性处理类
|
boolean |
isMap()
当前包装对象是否为map对象
|
boolean |
isReadableProperty(java.lang.String propertyName)
属性是否可读
|
boolean |
isWritableProperty(java.lang.String propertyName)
属性是否可写
|
protected AbstractBeanPropertyAccessor |
newNestedPropertyAccessor(java.lang.Object object,
java.lang.String nestedPath)
构造属性寄存对象
|
void |
setWrappedInstance(java.util.Map<java.lang.String,java.lang.Object> object)
设置类型为map的代理对象; 获取field1属性对应的值需要如下调用:
getPropertyValue("$[field1]")
|
void |
setWrappedInstance(java.lang.Object object)
设置bean对象;
|
getIndexPropertyValues, getIndexPropertyValues, getMapIndexPropertyValues, getNestedPath, getPropertyHoldingToken, getPropertyHoldingValue, getPropertyNameToken, getPropertyValue, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, scanPropertyMapValue, setAllowCollectionAutoGrow, setAllowCreateHoldValueIfNull, setPropertyValue, setPropertyValue, setWrappedInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyValue, setPropertyValueprotected CachedIntrospectionResults cachedIntrospectionResults
protected AbstractBeanPropertyAccessor newNestedPropertyAccessor(java.lang.Object object, java.lang.String nestedPath)
AbstractBeanPropertyAccessornewNestedPropertyAccessor 在类中 AbstractBeanPropertyAccessorobject - 当前对象nestedPath - 当前内嵌路径protected CachedIntrospectionResults getCachedIntrospectionResults()
public void setWrappedInstance(java.lang.Object object)
setWrappedInstance 在类中 AbstractBeanPropertyAccessorobject - 待包装对象,必须是beanpublic void setWrappedInstance(java.util.Map<java.lang.String,java.lang.Object> object)
getPropertyValue("$[field1]")
object - map代理对象,只支持Mappublic boolean isReadableProperty(java.lang.String propertyName)
DyBeanisReadableProperty 在接口中 DyBeanisReadableProperty 在接口中 PropertyAccessorpropertyName - 属性名public boolean isWritableProperty(java.lang.String propertyName)
DyBeanisWritableProperty 在接口中 DyBeanisWritableProperty 在接口中 PropertyAccessorpropertyName - 属性名public java.beans.PropertyDescriptor[] getPropertyDescriptors()
DyBeangetPropertyDescriptors 在接口中 DyBeanpublic java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
DyBeangetPropertyDescriptor 在接口中 DyBeanpropertyName - 属性名protected AbstractBeanPropertyAccessor.PropertyHandle getPropertyHandle(java.lang.String propertyName)
AbstractBeanPropertyAccessorpublic boolean isMap()