public class BeanProperty
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Method |
getter
Deprecated.
the getter
|
Constructor and Description |
---|
BeanProperty(java.lang.Class memberClass,
java.lang.String propertyName,
java.lang.Class propertyType)
Deprecated.
Creates a new
BeanProperty that gets the specified property from
the specified class. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object member)
Deprecated.
Gets the value of this property for the specified Object.
|
java.lang.Class |
getBeanClass()
Deprecated.
Gets the base class that this getter accesses.
|
java.lang.String |
getName()
Deprecated.
Gets the name of the property that this getter extracts.
|
java.lang.Class |
getType()
Deprecated.
Returns the property type
|
boolean |
isReadable()
Deprecated.
Gets whether this property can get get.
|
boolean |
isWritable()
Deprecated.
Gets whether this property can be set.
|
java.lang.Object |
set(java.lang.Object member,
java.lang.Object newValue)
Deprecated.
Sets the value of this property for the specified Object.
|
void |
setGetterMethod(java.lang.reflect.Method method)
Deprecated.
|
void |
setSetterMethod(java.lang.reflect.Method method)
Deprecated.
|
public BeanProperty(java.lang.Class memberClass, java.lang.String propertyName, java.lang.Class propertyType)
BeanProperty
that gets the specified property from
the specified class.public java.lang.Class getBeanClass()
public java.lang.Class getType()
public java.lang.String getName()
public boolean isReadable()
public boolean isWritable()
public java.lang.Object get(java.lang.Object member) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
public java.lang.Object set(java.lang.Object member, java.lang.Object newValue) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
public void setGetterMethod(java.lang.reflect.Method method)
method
- public void setSetterMethod(java.lang.reflect.Method method)
method
- Copyright © 2004–2022 XStream. All rights reserved.