
com.grosner.processor.model.ReflectionUtils Maven / Gradle / Ivy
The newest version!
package com.grosner.processor.model;
/**
* Author: andrewgrosner
* Contributors: { }
* Description:
*/
public class ReflectionUtils {
public static boolean isSubclassOf(String columnFieldType, Class> enumClass) {
boolean isSubClass = false;
try {
Class type = Class.forName(columnFieldType);
isSubClass = type.getSuperclass() != null && (type.getSuperclass().equals(enumClass) ||
isSubclassOf(type.getSuperclass().getName(), enumClass));
} catch (ClassNotFoundException e) {
}
return isSubClass;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy