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 PropertyEditorcreatePropertyEditor(java.lang.Object bean)booleanequals(java.lang.Object object)java.lang.Class<?>getPropertyEditorClass()java.lang.Class<?>getPropertyType()java.lang.reflect.MethodgetReadMethod()java.lang.reflect.MethodgetWriteMethod()inthashCode()booleanisBound()booleanisConstrained()voidsetBound(boolean bound)voidsetConstrained(boolean constrained)voidsetPropertyEditorClass(java.lang.Class<?> propertyEditorClass)voidsetReadMethod(java.lang.reflect.Method getter)voidsetWriteMethod(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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)
-
-