public static class ApplicationX.BeanWrapper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
NESTED_PROPERTY_SEPARATOR
Path separator for nested properties.
|
static char |
NESTED_PROPERTY_SEPARATOR_CHAR
Path separator for nested properties.
|
static String |
PROPERTY_KEY_PREFIX
Marker that indicates the start of a property key for an
indexed or mapped property like "person.addresses[0]".
|
static char |
PROPERTY_KEY_PREFIX_CHAR
Marker that indicates the start of a property key for an
indexed or mapped property like "person.addresses[0]".
|
static String |
PROPERTY_KEY_SUFFIX
Marker that indicates the end of a property key for an
indexed or mapped property like "person.addresses[0]".
|
static char |
PROPERTY_KEY_SUFFIX_CHAR
Marker that indicates the end of a property key for an
indexed or mapped property like "person.addresses[0]".
|
| 构造器和说明 |
|---|
BeanWrapper(Object wrappedInstance) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
convertIfNecessary(Object value,
Class<T> requiredType) |
PropertyDescriptor |
getPropertyDescriptor(String propertyName) |
PropertyDescriptor[] |
getPropertyDescriptors() |
Class<?> |
getPropertyType(String propertyName) |
Type |
getPropertyTypeDescriptor(String propertyName) |
Object |
getPropertyValue(String propertyName) |
Class<?> |
getWrappedClass() |
Object |
getWrappedInstance() |
boolean |
isReadableProperty(String propertyName) |
boolean |
isWritableProperty(String propertyName) |
void |
setPropertyValue(ApplicationX.PropertyValue pv) |
void |
setPropertyValue(String propertyName,
Object value) |
void |
setPropertyValues(ApplicationX.PropertyValues pvs) |
void |
setPropertyValues(ApplicationX.PropertyValues pvs,
boolean ignoreUnknown) |
void |
setPropertyValues(ApplicationX.PropertyValues pvs,
boolean ignoreUnknown,
boolean ignoreInvalid) |
void |
setPropertyValues(Map<?,?> map) |
public static final String NESTED_PROPERTY_SEPARATOR
public static final char NESTED_PROPERTY_SEPARATOR_CHAR
public static final String PROPERTY_KEY_PREFIX
public static final char PROPERTY_KEY_PREFIX_CHAR
public static final String PROPERTY_KEY_SUFFIX
public static final char PROPERTY_KEY_SUFFIX_CHAR
public BeanWrapper(Object wrappedInstance)
public PropertyDescriptor[] getPropertyDescriptors()
public Class<?> getWrappedClass()
public Object getWrappedInstance()
public boolean isReadableProperty(String propertyName)
public boolean isWritableProperty(String propertyName)
public Class<?> getPropertyType(String propertyName) throws IllegalArgumentException, IllegalStateException
public Type getPropertyTypeDescriptor(String propertyName) throws IllegalArgumentException, IllegalStateException
public Object getPropertyValue(String propertyName) throws IllegalArgumentException, IllegalStateException
public void setPropertyValue(String propertyName, Object value) throws IllegalArgumentException, IllegalStateException
public void setPropertyValue(ApplicationX.PropertyValue pv) throws IllegalArgumentException, IllegalStateException
public void setPropertyValues(Map<?,?> map) throws IllegalArgumentException, IllegalStateException
public void setPropertyValues(ApplicationX.PropertyValues pvs) throws IllegalArgumentException, IllegalStateException
public void setPropertyValues(ApplicationX.PropertyValues pvs, boolean ignoreUnknown) throws IllegalArgumentException, IllegalStateException
public void setPropertyValues(ApplicationX.PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) throws IllegalArgumentException, IllegalStateException
public PropertyDescriptor getPropertyDescriptor(String propertyName) throws IllegalArgumentException
public <T> T convertIfNecessary(Object value, Class<T> requiredType) throws IllegalArgumentException
Copyright © 2021. All rights reserved.