Name

Class java.beans.PropertyDescriptor

Description

A PropertyDescriptor describes a single exposed property of a Bean. This property is associated with a pair of accessor methods.

Class Definition

public class PropertyDescriptor extends FeatureDescriptor 
{
   // constructors
   public PropertyDescriptor(String propertyName, Class beanClass)
               throws IntrospectionException;
   public PropertyDescriptor(String propertyName, Class beanClass,
                                 String getterName, String setterName)
               throws IntrospectionException;
   public PropertyDescriptor(String propertyName, Method getter, 
                             Method setter)
               throws IntrospectionException;
   
   // methods
   public Class getPropertyEditorClass();
   public Class getPropertyType();
   public Method getReadMethod();
   public Method getWriteMethod();
   public boolean isBound();
   public boolean isConstrained();
   public void setBound(boolean bound);
   public void setConstrained(boolean constrained);
   public void setPropertyEditorClass(Class propertyEditorClass);
}

See Also

FeatureDescriptor, IntrospectionException

Get Developing Java Beans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.