Class BeanProperty
- java.lang.Object
-
- com.thoughtworks.xstream.converters.javabean.BeanProperty
-
public class BeanProperty extends java.lang.ObjectDeprecated.As of 1.3.1, no longer in useProvide access to a bean property.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]EMPTY_ARGSDeprecated.protected java.lang.reflect.MethodgetterDeprecated.the getterprivate java.lang.ClassmemberClassDeprecated.the target classprivate java.lang.StringpropertyNameDeprecated.the property nameprivate java.lang.reflect.MethodsetterDeprecated.the setterprivate java.lang.ClasstypeDeprecated.the property type
-
Constructor Summary
Constructors Constructor Description BeanProperty(java.lang.Class memberClass, java.lang.String propertyName, java.lang.Class propertyType)Deprecated.Creates a newBeanPropertythat gets the specified property from the specified class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object member)Deprecated.Gets the value of this property for the specified Object.java.lang.ClassgetBeanClass()Deprecated.Gets the base class that this getter accesses.java.lang.StringgetName()Deprecated.Gets the name of the property that this getter extracts.java.lang.ClassgetType()Deprecated.Returns the property typebooleanisReadable()Deprecated.Gets whether this property can get get.booleanisWritable()Deprecated.Gets whether this property can be set.java.lang.Objectset(java.lang.Object member, java.lang.Object newValue)Deprecated.Sets the value of this property for the specified Object.voidsetGetterMethod(java.lang.reflect.Method method)Deprecated.voidsetSetterMethod(java.lang.reflect.Method method)Deprecated.
-
-
-
Field Detail
-
memberClass
private java.lang.Class memberClass
Deprecated.the target class
-
propertyName
private java.lang.String propertyName
Deprecated.the property name
-
type
private java.lang.Class type
Deprecated.the property type
-
getter
protected java.lang.reflect.Method getter
Deprecated.the getter
-
setter
private java.lang.reflect.Method setter
Deprecated.the setter
-
EMPTY_ARGS
private static final java.lang.Object[] EMPTY_ARGS
Deprecated.
-
-
Constructor Detail
-
BeanProperty
public BeanProperty(java.lang.Class memberClass, java.lang.String propertyName, java.lang.Class propertyType)Deprecated.Creates a newBeanPropertythat gets the specified property from the specified class.
-
-
Method Detail
-
getBeanClass
public java.lang.Class getBeanClass()
Deprecated.Gets the base class that this getter accesses.
-
getType
public java.lang.Class getType()
Deprecated.Returns the property type
-
getName
public java.lang.String getName()
Deprecated.Gets the name of the property that this getter extracts.
-
isReadable
public boolean isReadable()
Deprecated.Gets whether this property can get get.
-
isWritable
public boolean isWritable()
Deprecated.Gets whether this property can be set.
-
get
public java.lang.Object get(java.lang.Object member) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessExceptionDeprecated.Gets the value of this property for the specified Object.- Throws:
java.lang.IllegalAccessExceptionjava.lang.IllegalArgumentException
-
set
public java.lang.Object set(java.lang.Object member, java.lang.Object newValue) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessExceptionDeprecated.Sets the value of this property for the specified Object.- Throws:
java.lang.IllegalAccessExceptionjava.lang.IllegalArgumentException
-
setGetterMethod
public void setGetterMethod(java.lang.reflect.Method method)
Deprecated.- Parameters:
method-
-
setSetterMethod
public void setSetterMethod(java.lang.reflect.Method method)
Deprecated.- Parameters:
method-
-
-