Represents a property on a bean which may have a getter and/or a setter
Fields inherited from class | Fields |
---|---|
class MetaProperty |
PROPERTY_SET_PREFIX, name, type |
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. |
Methods inherited from class | Name |
---|---|
class MetaProperty |
getGetterName, getModifiers, getName, getProperty, getSetterName, getType, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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-2019 The Apache Software Foundation. All rights reserved.