org.apache.jdo.impl.model.java.reflection
Class ReflectionJavaTypeIntrospector

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.reflection.ReflectionJavaTypeIntrospector

public class ReflectionJavaTypeIntrospector
extends java.lang.Object

Helper class to introspect a ReflectionJavaType representing a class to find its properties.

Since:
JDO 2.0
Author:
Michael Bouschen

Nested Class Summary
(package private) static class ReflectionJavaTypeIntrospector.PropertyStore
          Helper class to introspect a class in order to find properties.
 
Field Summary
private static I18NHelper msg
          I18N support
 
Constructor Summary
ReflectionJavaTypeIntrospector()
           
 
Method Summary
 void addDeclaredJavaProperties(ReflectionJavaType beanClass)
          Adds declared properties to the specified ReflectionJavaType instance.
private  java.beans.PropertyDescriptor[] getPublicAndProtectedPropertyDescriptors(java.lang.Class clazz)
          Returns an array of PropertyDescriptor instances representing the declared public and protected properties of the specified class.
private  java.beans.PropertyDescriptor[] getPublicPropertyDescriptors(java.lang.Class clazz)
          Returns an array of PropertyDescriptor instances representing the declared public properties of the specified class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msg

private static final I18NHelper msg
I18N support

Constructor Detail

ReflectionJavaTypeIntrospector

public ReflectionJavaTypeIntrospector()
Method Detail

addDeclaredJavaProperties

public void addDeclaredJavaProperties(ReflectionJavaType beanClass)
Adds declared properties to the specified ReflectionJavaType instance.

Parameters:
beanClass - the class to be introspected

getPublicPropertyDescriptors

private java.beans.PropertyDescriptor[] getPublicPropertyDescriptors(java.lang.Class clazz)
Returns an array of PropertyDescriptor instances representing the declared public properties of the specified class.

Parameters:
clazz - the class to be introspected
Returns:
array of PropertyDescriptor instances for declared public properties.

getPublicAndProtectedPropertyDescriptors

private java.beans.PropertyDescriptor[] getPublicAndProtectedPropertyDescriptors(java.lang.Class clazz)
Returns an array of PropertyDescriptor instances representing the declared public and protected properties of the specified class.

Parameters:
clazz - the class to be introspected
Returns:
array of PropertyDescriptor instances for declared public and protected properties.