com.ibatis.common.beans
public class GenericProbe extends BaseProbe
Object value = StaticBeanProbe.getObject(object, propertyName);
| Constructor Summary | |
|---|---|
| protected | GenericProbe() |
| Method Summary | |
|---|---|
| Object | getObject(Object object, String name)
Gets an object from a Map or bean
|
| protected Object | getProperty(Object object, String property) |
| Class | getPropertyTypeForGetter(Object object, String name)
Returns the class that the getter will return when reading a property value.
|
| Class | getPropertyTypeForSetter(Object object, String name)
Returns the class that the setter expects to receive as a parameter when
setting a property value.
|
| String[] | getReadablePropertyNames(Object object)
Gets an array of the readable properties in a Map or JavaBean
|
| String[] | getWriteablePropertyNames(Object object)
Gets an array of the writeable properties in a Map or JavaBean
|
| boolean | hasReadableProperty(Object object, String propertyName)
Checks to see if a bean has a readable property by a given name
|
| boolean | hasWritableProperty(Object object, String propertyName)
Checks to see if an object has a writable property by a given name
|
| void | setObject(Object object, String name, Object value)
Sets an object in a Map or bean
|
| protected void | setProperty(Object object, String property, Object value) |
Parameters: object - the object to probe name - the name of the property (or map entry)
Returns: The value of the property (or map entry)
See Also: BaseProbe
Parameters: object The bean to check name The name of the property
Returns: The type of the property
See Also: Probe
Parameters: object - The class to check name - the name of the property
Returns: The type of the property
See Also: Probe
Parameters: object - the object to get properties for
Returns: The array of properties (or map entries)
See Also: BaseProbe
Parameters: object - the object to get properties for
Returns: The array of properties (or map entries)
See Also: BaseProbe
Parameters: object The bean to check propertyName The property to check for
Returns: True if the property exists and is readable
See Also: Probe
Parameters: object The bean to check propertyName The property to check for
Returns: True if the property exists and is writable
See Also: Probe
Parameters: object - the object to probe name - the name of the property (or map entry) value - the new value of the property (or map entry)
See Also: BaseProbe