public abstract class PropertySetter extends Object
BeanIntrospector| Modifier and Type | Class and Description |
|---|---|
static class |
PropertySetter.Field
This class provides
PropertySetter implementation that
uses class field to access the property. |
static class |
PropertySetter.Method
This class provides
PropertySetter implementation that
uses setter method to access the property. |
| Constructor and Description |
|---|
PropertySetter() |
| Modifier and Type | Method and Description |
|---|---|
abstract Type |
getGenericType()
Returns generic type of the property.
|
abstract Class<?> |
getType()
Returns raw type of the property.
|
static PropertySetter |
newSetter(Member setter)
Creates a new property setter for the specified class member.
|
abstract void |
setValue(Object object,
Object value)
Assigns property value for the specified object.
|
public abstract Class<?> getType()
public abstract Type getGenericType()
public abstract void setValue(Object object, Object value)
object - Object whose property value should be assigned.value - New property value.PropertyAccessException - if an error occured when accessing
property.public static PropertySetter newSetter(Member setter)
null if member is abstract or null.IllegalArgumentException - if illegal member type specified.Copyright © 2010-2012 FoxLabs. All Rights Reserved.