Name

Class java.beans.IndexedPropertyDescriptor

Description

The IndexedPropertyDescriptor class is used to describe a property that appears to be an ordered collection. This property has an indexed read or indexed write method to access specific elements of the collection. An indexed property may also provide non-indexed read and write methods which are used to read and write the values of the property as a single array.

Class Definition

public class IndexedPropertyDescriptor extends PropertyDescriptor 
{
   // constructors
   public IndexedPropertyDescriptor(String propertyName, 
                         Class beanClass)
                throws IntrospectionException;
   public IndexedPropertyDescriptor(String propertyName, 
                         Class beanClass,
                         String getterName, String setterName,
                         String indexedGetterName, 
                         String indexedSetterName)
                throws IntrospectionException;
   public IndexedPropertyDescriptor(String propertyName, 
                         Method getter, Method setter,
                         Method indexedGetter, Method indexedSetter)
                throws IntrospectionException;
   
   // methods
   public Class getIndexedPropertyType();
   public Method getIndexedReadMethod();
   public Method getIndexedWriteMethod();
}

See Also

IntrospectionException, PropertyDescriptor

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.