| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private boolean | |
| private Reference | |
| private Reference | |
| private String | |
| private final MethodRef | |
| private String | |
| private final MethodRef |
| Access | Constructor and Description |
|---|---|
| public | PropertyDescriptor(String
The programmatic name of the property. propertyName, Class<?> The Class object for the target bean. For
example sun.beans.OurButton.class. beanClass)Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods. |
| public | PropertyDescriptor(String
The programmatic name of the property. propertyName, Class<?> The Class object for the target bean. For
example sun.beans.OurButton.class. beanClass, String The name of the method used for reading the property
value. May be null if the property is write-only. readMethodName, String The name of the method used for writing the property
value. May be null if the property is read-only. writeMethodName)This constructor takes the name of a simple property, and method names for reading and writing the property. |
| public | PropertyDescriptor(String
The programmatic name of the property. propertyName, Method The method used for reading the property value.
May be null if the property is write-only. readMethod, Method The method used for writing the property value.
May be null if the property is read-only. writeMethod)This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
| pack-priv | PropertyDescriptor(Map.
the pair of values,
where the entry,key is the base name of the property (the rest of the method name)
and the value is the automatically generated property infothe flag indicating whether it is possible to treat this property as a bound property bound)Creates |
| pack-priv | PropertyDescriptor(PropertyDescriptor
The first (lower priority) PropertyDescriptor x, PropertyDescriptor The second (higher priority) PropertyDescriptor y)Package-private constructor. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv boolean | Returns: boolean to indicate that the methods are equivalentfirst method to compare a, Method second method to compare b)Package private helper method for Descriptor .equals methods. |
| public PropertyEditor | Returns: a property editor instance or null if a property editor has not been defined or cannot be createdthe source object bean)Constructs an instance of a property editor using the current property editor class. |
| public boolean | equals(Object obj)
Overrides java. Compares this |
| private Class | Returns: the type of the property descriptor or null if both read and write methods are null.Returns the property type that corresponds to the read and write method. |
| pack-priv String | |
| public Class | Returns: Any explicit PropertyEditor Class that has been registered for this property. Normally this will return "null", indicating that no special editor has been registered, so the PropertyEditorManager should be used to locate a suitable PropertyEditor.Gets any explicit PropertyEditor Class that has been registered for this property. |
| public synchronized Class | Returns: theClass object that represents the Java type info,
or null if the type cannot be determinedReturns the Java type info for the property. |
| private Class | |
| public synchronized Method | Returns: The method that should be used to read the property value. May return null if the property can't be read.Gets the method that should be used to read the property value. |
| public synchronized Method | Returns: The method that should be used to write the property value. May return null if the property can't be written.Gets the method that should be used to write the property value. |
| public int | Returns: a hash code value for this object.Overrides java. Returns a hash code value for the object. |
| pack-priv boolean | |
| public boolean | Returns: True if this is a bound property.Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed. |
| public boolean | Returns: True if this is a constrained property.Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed. |
| public void | setBound(boolean
True if this is a bound property. bound)Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed. |
| pack-priv void | setClass0(Class<?> clz)
Overrides java. Overridden to ensure that a super class doesn't take precedent |
| public void | setConstrained(boolean
True if this is a constrained property. constrained)Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed. |
| public void | setPropertyEditorClass(Class<?>
The Class for the desired PropertyEditor. propertyEditorClass)Normally PropertyEditors will be found using the PropertyEditorManager. |
| private void | |
| public synchronized void | setReadMethod(Method
The new read method. readMethod)Sets the method that should be used to read the property value. |
| private void | |
| public synchronized void | setWriteMethod(Method
The new write method. writeMethod)Sets the method that should be used to write the property value. |
| private void | |
| pack-priv void |
| baseName | back to summary |
|---|---|
| private String baseName | |
| bound | back to summary |
|---|---|
| private boolean bound | |
| constrained | back to summary |
|---|---|
| private boolean constrained | |
| propertyEditorClassRef | back to summary |
|---|---|
| private Reference<? extends Class<?>> propertyEditorClassRef | |
| propertyTypeRef | back to summary |
|---|---|
| private Reference<? extends Class<?>> propertyTypeRef | |
| readMethodName | back to summary |
|---|---|
| private String readMethodName | |
| readMethodRef | back to summary |
|---|---|
| private final MethodRef readMethodRef | |
| writeMethodName | back to summary |
|---|---|
| private String writeMethodName | |
| writeMethodRef | back to summary |
|---|---|
| private final MethodRef writeMethodRef | |
| PropertyDescriptor | back to summary |
|---|---|
| public PropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods. Thus if the argument name is "fred", it will assume that the writer method is "setFred" and the reader method is "getFred" (or "isFred" for a boolean property). Note that the property name should start with a lower case character, which will be capitalized in the method names.
| |
| PropertyDescriptor | back to summary |
|---|---|
| public PropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) throws IntrospectionException This constructor takes the name of a simple property, and method names for reading and writing the property.
| |
| PropertyDescriptor | back to summary |
|---|---|
| public PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException This constructor takes the name of a simple property, and Method objects for reading and writing the property.
| |
| PropertyDescriptor | back to summary |
|---|---|
| pack-priv PropertyDescriptor(Map. Creates
| |
| PropertyDescriptor | back to summary |
|---|---|
| pack-priv PropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y) Package-private constructor. Merge two property descriptors. Where they conflict, give the second argument (y) priority over the first argument (x).
| |
| PropertyDescriptor | back to summary |
|---|---|
| pack-priv PropertyDescriptor(PropertyDescriptor old) | |
| appendTo | back to summary |
|---|---|
| pack-priv void appendTo(StringBuilder sb) Overrides java.
| |
| compareMethods | back to summary |
|---|---|
| pack-priv boolean compareMethods(Method a, Method b) Package private helper method for Descriptor .equals methods. | |
| createPropertyEditor | back to summary |
|---|---|
| public PropertyEditor createPropertyEditor(Object bean) Constructs an instance of a property editor using the current property editor class. If the property editor class has a public constructor that takes an Object argument then it will be invoked using the bean parameter as the argument. Otherwise, the default constructor will be invoked.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares this
| |
| findPropertyType | back to summary |
|---|---|
| private Class Returns the property type that corresponds to the read and write method. The type precedence is given to the readMethod.
| |
| getBaseName | back to summary |
|---|---|
| pack-priv String getBaseName() | |
| getPropertyEditorClass | back to summary |
|---|---|
| public Class Gets any explicit PropertyEditor Class that has been registered for this property.
| |
| getPropertyType | back to summary |
|---|---|
| public synchronized Class Returns the Java type info for the property.
Note that the
| |
| getPropertyType0 | back to summary |
|---|---|
| private Class | |
| getReadMethod | back to summary |
|---|---|
| public synchronized Method getReadMethod() Gets the method that should be used to read the property value.
| |
| getWriteMethod | back to summary |
|---|---|
| public synchronized Method getWriteMethod() Gets the method that should be used to write the property value.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
See
| |
| isAssignable | back to summary |
|---|---|
| pack-priv boolean isAssignable(Method m1, Method m2) | |
| isBound | back to summary |
|---|---|
| public boolean isBound() Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed.
| |
| isConstrained | back to summary |
|---|---|
| public boolean isConstrained() Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed.
| |
| setBound | back to summary |
|---|---|
| public void setBound(boolean bound) Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed.
| |
| setClass0 | back to summary |
|---|---|
| pack-priv void setClass0(Class<?> clz) Overrides java. Overridden to ensure that a super class doesn't take precedent
| |
| setConstrained | back to summary |
|---|---|
| public void setConstrained(boolean constrained) Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed.
| |
| setPropertyEditorClass | back to summary |
|---|---|
| public void setPropertyEditorClass(Class<?> propertyEditorClass) Normally PropertyEditors will be found using the PropertyEditorManager. However if for some reason you want to associate a particular PropertyEditor with a given property, then you can do it with this method.
| |
| setPropertyType | back to summary |
|---|---|
| private void setPropertyType(Class<?> type) | |
| setReadMethod | back to summary |
|---|---|
| public synchronized void setReadMethod(Method readMethod) throws IntrospectionException Sets the method that should be used to read the property value.
| |
| setReadMethod0 | back to summary |
|---|---|
| private void setReadMethod0(Method readMethod) | |
| setWriteMethod | back to summary |
|---|---|
| public synchronized void setWriteMethod(Method writeMethod) throws IntrospectionException Sets the method that should be used to write the property value.
| |
| setWriteMethod0 | back to summary |
|---|---|
| private void setWriteMethod0(Method writeMethod) | |
| updateGenericsFor | back to summary |
|---|---|
| pack-priv void updateGenericsFor(Class<?> type) | |