/** * Populate annotations of a {@link MutableAnnotated} from an * {@link Element} containing a child 'annotations'. If the annotations * element is not present this method does nothing. * * @see #injectAnnotations(Element, Annotated) * @param parent * Element from where to find the 'annotations' child * @param annotated * {@link MutableAnnotated} to be annotated */ public static void populateAnnotationsFromParent(Element parent, Annotated<?> annotated) { Element annotationsElement = parent.getChild(ANNOTATIONS); if (annotationsElement != null) { annotateObject(annotationsElement, annotated); } }
/** * Populate annotations of a {@link MutableAnnotated} from an * {@link Element} containing a child 'annotations'. If the annotations * element is not present this method does nothing. * * @see #injectAnnotations(Element, Annotated) * @param parent * Element from where to find the 'annotations' child * @param annotated * {@link MutableAnnotated} to be annotated */ public static void populateAnnotationsFromParent(Element parent, Annotated<?> annotated) { Element annotationsElement = parent.getChild(ANNOTATIONS); if (annotationsElement != null) { annotateObject(annotationsElement, annotated); } }
/** * Populate annotations of a {@link MutableAnnotated} from an * {@link Element} containing a child 'annotations'. If the annotations * element is not present this method does nothing. * * @see #injectAnnotations(Element, Annotated) * @param parent * Element from where to find the 'annotations' child * @param annotated * {@link MutableAnnotated} to be annotated */ @Deprecated public static void populateAnnotationsFromParent(Element parent, Annotated<?> annotated) { Element annotationsElement = parent.getChild(ANNOTATIONS); if (annotationsElement != null) { annotateObject(annotationsElement, annotated); } }