/** * Gets the generic Xref type for an AnnotatedObject class * @param clazz an AnnotatedObject class * @return the Xref type used in the class */ public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("xrefs", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * * @param clazz an AnnotatedObject class * @return the Xref type used in the class */ public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("xrefs", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * * @param clazz an AnnotatedObject class * @return the Xref type used in the class * @since 1.6.1 */ public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("aliases", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * * @param clazz an AnnotatedObject class * @return the Xref type used in the class */ public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("xrefs", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * @param clazz an AnnotatedObject class * @return the Xref type used in the class * * @since 1.6.1 */ public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("aliases", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * * @param clazz an AnnotatedObject class * @return the Xref type used in the class * @since 1.6.1 */ public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("aliases", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }