Package gw.lang.reflect
Class TypedPropertyDescriptor
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- java.beans.PropertyDescriptor
-
- gw.lang.reflect.TypedPropertyDescriptor
-
- All Implemented Interfaces:
IIntrinsicTypeReference
public class TypedPropertyDescriptor extends PropertyDescriptor implements IIntrinsicTypeReference
-
-
Constructor Summary
Constructors Constructor Description TypedPropertyDescriptor(String propertyName, Class beanClass, String getterName, String setterName)
Used to construct a property descriptor for extension fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IType
getFeatureType()
The type of this feature e.g., for a property this is the property's type.Class
getPropertyType()
void
setReadMethod(Method getter)
void
setWriteMethod(Method setter)
-
Methods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass
-
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IIntrinsicTypeReference
getAssignableFeatureType
-
-
-
-
Constructor Detail
-
TypedPropertyDescriptor
public TypedPropertyDescriptor(String propertyName, Class beanClass, String getterName, String setterName) throws IntrospectionException
Used to construct a property descriptor for extension fields.- Throws:
IntrospectionException
-
-
Method Detail
-
getPropertyType
public Class getPropertyType()
- Overrides:
getPropertyType
in classPropertyDescriptor
-
setReadMethod
public void setReadMethod(Method getter) throws IntrospectionException
- Overrides:
setReadMethod
in classPropertyDescriptor
- Throws:
IntrospectionException
-
setWriteMethod
public void setWriteMethod(Method setter) throws IntrospectionException
- Overrides:
setWriteMethod
in classPropertyDescriptor
- Throws:
IntrospectionException
-
getFeatureType
public IType getFeatureType()
Description copied from interface:IIntrinsicTypeReference
The type of this feature e.g., for a property this is the property's type.- Specified by:
getFeatureType
in interfaceIIntrinsicTypeReference
-
-