org.kuali.student.datadictionary.util
Class Bean2DictionaryConverter

java.lang.Object
  extended by org.kuali.student.datadictionary.util.Bean2DictionaryConverter

public class Bean2DictionaryConverter
extends Object


Field Summary
private  Class<?> clazz
           
private  Stack<Class<?>> parentClasses
           
private  Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields
           
 
Constructor Summary
Bean2DictionaryConverter(Class<?> clazz, Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields, Stack<Class<?>> parentClasses)
           
 
Method Summary
 void addFields(String debuggingContext, org.kuali.rice.krad.datadictionary.DataObjectEntry ode)
           
static Class<?> calcActualClass(Class<?> clazz, PropertyDescriptor pd)
           
private  org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase calcDataDictionaryDefinition(PropertyDescriptor pd, org.kuali.rice.core.api.uif.DataType dataType)
           
static org.kuali.rice.core.api.uif.DataType calcDataType(String context, Class<?> pt)
           
private  String calcName(String leafName)
           
 org.kuali.rice.krad.datadictionary.DataObjectEntry convert()
           
private static Method findMethodImplFirst(Class<?> currentTargetClass, String methodName, Class<?>... argTypes)
          Got this code from: http://raulraja.com/2009/09/12/java-beans-introspector-odd-behavio/ workaround for introspector odd behavior with javabeans that implement interfaces with comaptible return types but instrospection is unable to find the right accessors
private  String initLower(String name)
           
private static Class<?> workAround(Class<?> currentTargetClass, String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private Class<?> clazz

parentFields

private Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields

parentClasses

private Stack<Class<?>> parentClasses
Constructor Detail

Bean2DictionaryConverter

public Bean2DictionaryConverter(Class<?> clazz,
                                Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields,
                                Stack<Class<?>> parentClasses)
Method Detail

convert

public org.kuali.rice.krad.datadictionary.DataObjectEntry convert()

addFields

public void addFields(String debuggingContext,
                      org.kuali.rice.krad.datadictionary.DataObjectEntry ode)

calcDataDictionaryDefinition

private org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase calcDataDictionaryDefinition(PropertyDescriptor pd,
                                                                                                     org.kuali.rice.core.api.uif.DataType dataType)

calcName

private String calcName(String leafName)

initLower

private String initLower(String name)

calcActualClass

public static Class<?> calcActualClass(Class<?> clazz,
                                       PropertyDescriptor pd)

workAround

private static Class<?> workAround(Class<?> currentTargetClass,
                                   String methodName)

findMethodImplFirst

private static Method findMethodImplFirst(Class<?> currentTargetClass,
                                          String methodName,
                                          Class<?>... argTypes)
Got this code from: http://raulraja.com/2009/09/12/java-beans-introspector-odd-behavio/ workaround for introspector odd behavior with javabeans that implement interfaces with comaptible return types but instrospection is unable to find the right accessors

Parameters:
currentTargetClass - the class being evaluated
methodName - the method name we are looking for
argTypes - the arg types for the method name
Returns:
a method if found

calcDataType

public static org.kuali.rice.core.api.uif.DataType calcDataType(String context,
                                                                Class<?> pt)


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.