private void processCalcomps(final BaseComponentType c, final BuildState bs) throws Throwable { List<JAXBElement<? extends BaseComponentType>> comps = XcalUtil.getComponents(c); if (comps == null) { return; } for (JAXBElement<? extends BaseComponentType> el: comps) { processComponent(el.getValue(), bs); } }
/** * @param bcPar * @param name * @return null or first matching component */ public static BaseComponentType findComponent(final BaseComponentType bcPar, final QName name) { List<JAXBElement<? extends BaseComponentType>> cs = getComponents(bcPar); if (cs == null) { return null; } for (JAXBElement<? extends BaseComponentType> bcel: cs) { if (bcel.getName().equals(name)) { return bcel.getValue(); } BaseComponentType bc = findComponent(bcel.getValue(), name); if (bc != null) { return bc; } } return null; }
XcalUtil.getComponents(pattern);
XcalUtil.getComponents(pattern);
CompWrapper(final CompsWrapper parent, final QName name, final BaseComponentType c) { super(parent, name, c); if (c.getProperties() != null) { props = new PropsWrapper(this, c.getProperties().getBasePropertyOrTzid()); } comps = new CompsWrapper(this, XcalUtil.getComponents(c)); kind = XcalUtil.getCompKind(name); }
CompWrapper(final XmlIcalCompare.Globals globals, final QName name, final BaseComponentType c) { super(null, name, c); setGlobals(globals); if (c.getProperties() != null) { props = new PropsWrapper(this, c.getProperties().getBasePropertyOrTzid()); } comps = new CompsWrapper(this, XcalUtil.getComponents(c)); kind = XcalUtil.getCompKind(name); }