public class

BeanProperty

extends Object
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.javabean.BeanProperty

This class is deprecated.
since 1.3.1, no longer in use

Class Overview

Provide access to a bean property.

Summary

Fields
protected Method getter the getter
Public Constructors
BeanProperty(Class memberClass, String propertyName, Class propertyType)
Creates a new BeanPropertythat gets the specified property from the specified class.
Public Methods
Object get(Object member)
Gets the value of this property for the specified Object.
Class getBeanClass()
Gets the base class that this getter accesses.
String getName()
Gets the name of the property that this getter extracts.
Class getType()
Returns the property type
boolean isReadable()
Gets whether this property can get get.
boolean isWritable()
Gets whether this property can be set.
Object set(Object member, Object newValue)
Sets the value of this property for the specified Object.
void setGetterMethod(Method method)
void setSetterMethod(Method method)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected Method getter

the getter

Public Constructors

public BeanProperty (Class memberClass, String propertyName, Class propertyType)

Creates a new BeanPropertythat gets the specified property from the specified class.

Public Methods

public Object get (Object member)

Gets the value of this property for the specified Object.

Throws
IllegalAccessException
IllegalArgumentException
IllegalAccessException

public Class getBeanClass ()

Gets the base class that this getter accesses.

public String getName ()

Gets the name of the property that this getter extracts.

public Class getType ()

Returns the property type

public boolean isReadable ()

Gets whether this property can get get.

public boolean isWritable ()

Gets whether this property can be set.

public Object set (Object member, Object newValue)

Sets the value of this property for the specified Object.

Throws
IllegalAccessException
IllegalArgumentException
IllegalAccessException

public void setGetterMethod (Method method)

public void setSetterMethod (Method method)