Package jadex.commons.beans
Class PropertyDescriptor
- java.lang.Object
-
- jadex.commons.beans.FeatureDescriptor
-
- jadex.commons.beans.PropertyDescriptor
-
- Direct Known Subclasses:
IndexedPropertyDescriptor
public class PropertyDescriptor extends FeatureDescriptor
-
-
Constructor Summary
Constructors Constructor Description PropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass)
PropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass, java.lang.String getterName, java.lang.String setterName)
PropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyEditor
createPropertyEditor(java.lang.Object bean)
boolean
equals(java.lang.Object object)
java.lang.Class<?>
getPropertyEditorClass()
java.lang.Class<?>
getPropertyType()
java.lang.reflect.Method
getReadMethod()
java.lang.reflect.Method
getWriteMethod()
int
hashCode()
boolean
isBound()
boolean
isConstrained()
void
setBound(boolean bound)
void
setConstrained(boolean constrained)
void
setPropertyEditorClass(java.lang.Class<?> propertyEditorClass)
void
setReadMethod(java.lang.reflect.Method getter)
void
setWriteMethod(java.lang.reflect.Method setter)
-
Methods inherited from class jadex.commons.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
-
-
-
-
Constructor Detail
-
PropertyDescriptor
public PropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass, java.lang.String getterName, java.lang.String setterName) throws IntrospectionException
- Throws:
IntrospectionException
-
PropertyDescriptor
public PropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter) throws IntrospectionException
- Throws:
IntrospectionException
-
PropertyDescriptor
public PropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass) throws IntrospectionException
- Throws:
IntrospectionException
-
-
Method Detail
-
setWriteMethod
public void setWriteMethod(java.lang.reflect.Method setter) throws IntrospectionException
- Throws:
IntrospectionException
-
setReadMethod
public void setReadMethod(java.lang.reflect.Method getter) throws IntrospectionException
- Throws:
IntrospectionException
-
getWriteMethod
public java.lang.reflect.Method getWriteMethod()
-
getReadMethod
public java.lang.reflect.Method getReadMethod()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
setPropertyEditorClass
public void setPropertyEditorClass(java.lang.Class<?> propertyEditorClass)
-
getPropertyType
public java.lang.Class<?> getPropertyType()
-
getPropertyEditorClass
public java.lang.Class<?> getPropertyEditorClass()
-
setConstrained
public void setConstrained(boolean constrained)
-
setBound
public void setBound(boolean bound)
-
isConstrained
public boolean isConstrained()
-
isBound
public boolean isBound()
-
createPropertyEditor
public PropertyEditor createPropertyEditor(java.lang.Object bean)
-
-