blob: c12a72b34a6733534e7dee8741a3a52f6eb37819 [file] [log] [blame]
package org.apache.struts2.uelplugin.reflection;
import java.beans.PropertyDescriptor;
import java.beans.IntrospectionException;
import java.lang.reflect.Method;
/**
* Taken from OGNL
*/
public class ObjectIndexedPropertyDescriptor extends PropertyDescriptor
{
private Method indexedReadMethod;
private Method indexedWriteMethod;
private Class propertyType;
public ObjectIndexedPropertyDescriptor(String propertyName, Class propertyType, Method indexedReadMethod, Method indexedWriteMethod) throws IntrospectionException
{
super(propertyName, null, null);
this.propertyType = propertyType;
this.indexedReadMethod = indexedReadMethod;
this.indexedWriteMethod = indexedWriteMethod;
}
public Method getIndexedReadMethod()
{
return indexedReadMethod;
}
public Method getIndexedWriteMethod()
{
return indexedWriteMethod;
}
public Class getPropertyType()
{
return propertyType;
}
}