/** Get enclosed components for the supplied component. * * @param c * @return list of components or null for none or unrecognized class. */ public static List<JAXBElement<? extends BaseComponentType>> getComponents(final BaseComponentType c) { if (c.getComponents() == null) { return null; } return new ArrayList<JAXBElement<? extends BaseComponentType>>( c.getComponents().getBaseComponent()); }
ArrayOfComponents aoc = comp.getComponents();