Represents a property on a bean which may have a getter and/or a setter
Constructor and description |
---|
MetaBeanProperty
(String name, Class type, MetaMethod getter, MetaMethod setter) Sole constructor setting name, type (class), getter and setter. |
Type Params | Return Type | Name and description |
---|---|---|
|
CachedField |
getField() Gets the field of this property |
|
MetaMethod |
getGetter() Get the getter method. |
|
int |
getModifiers() Gets the visibility modifiers for the property as defined by the getter and setter methods. |
|
Object |
getProperty(Object object) Get the property of the given object. |
|
MetaMethod |
getSetter() Get the setter method. |
|
void |
setField(CachedField field) Sets the field of this property |
|
void |
setProperty(Object object, Object newValue) Set the property on the given object to the new value. |
Sole constructor setting name, type (class), getter and setter.
Gets the field of this property
Get the getter method.
Gets the visibility modifiers for the property as defined by the getter and setter methods.
Get the property of the given object.
object
- which to be gotGet the setter method.
Sets the field of this property
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.