public class MetaBeanProperty extends MetaProperty
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 |
---|---|---|
|
public CachedField |
getField() Gets the field of this property |
|
public MetaMethod |
getGetter() Get the getter method. |
|
public int |
getModifiers() Gets the visibility modifiers for the property as defined by the getter and setter methods. |
|
public Object |
getProperty(Object object) Get the property of the given object. |
|
public MetaMethod |
getSetter() Get the setter method. |
|
public void |
setField(CachedField field) Sets the field of this property |
|
public 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 |
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-2024 The Apache Software Foundation. All rights reserved.