gov.nasa.arc.brahms.common.data
Interface IJavaClassInfo
- All Known Implementing Classes:
- JavaClassInfo
public interface IJavaClassInfo
IJavaClassInfo provides information about a Java class' properties
to access and set values of a Java class or object.
- Version:
- $Revision: 1.1 $ $Date: 2009/11/23 18:28:42 $ $Author: rnado $
- Author:
- Ron van Hoof
Method Summary |
java.beans.BeanInfo |
getBeanInfo()
Returns the Java Bean information about all of the introspected
bean properties, exposed methods, and events. |
java.lang.Class<?> |
getJavaClass()
Returns the Java class about which this object managed information. |
IJavaPropertyDescriptor |
getPropertyDescriptor(java.lang.String name)
Finds and returns the IJavaPropertyDescriptor for the property
with the specified name. |
getJavaClass
java.lang.Class<?> getJavaClass()
- Returns the Java class about which this object managed information.
- Returns:
- Class> the Java class
getBeanInfo
java.beans.BeanInfo getBeanInfo()
- Returns the Java Bean information about all of the introspected
bean properties, exposed methods, and events. This is a convenience
method to access the BeanInfo that may be used by this class
to find a Java Property.
- Returns:
- BeanInfo the BeanInfo for the managed class
getPropertyDescriptor
IJavaPropertyDescriptor getPropertyDescriptor(java.lang.String name)
- Finds and returns the IJavaPropertyDescriptor for the property
with the specified name. The following algorithm is used to
find a property by the specified name:
- Use bean introspection to find a property with the specified name.
The property is expected to have a getter and/or setter method
declared following the bean specification.
- If not found via bean introspection, an attempt is made to find
a public method with the same name. The property in that case is either
read-only (method has a return value and no declared parameters) or
is write-only (method has a single parameter and no return value)
- If not found as a method, an attempt is made to find a field
with the specified name (private/protected/public).
- Parameters:
name
- the name of the property
- Returns:
- IJavaPropertyDescriptor the descriptor for the property,
null if no property with the specified name could be found
Copyright © 1997-2012 All Rights Reserved.