org.kuali.student.datadictionary.util
Class Bean2DictionaryConverter
java.lang.Object
org.kuali.student.datadictionary.util.Bean2DictionaryConverter
public class Bean2DictionaryConverter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clazz
private Class<?> clazz
parentFields
private Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields
parentClasses
private Stack<Class<?>> parentClasses
Bean2DictionaryConverter
public Bean2DictionaryConverter(Class<?> clazz,
Stack<org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase> parentFields,
Stack<Class<?>> parentClasses)
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 evaluatedmethodName
- the method name we are looking forargTypes
- 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.