static void processParameters(final ParameterList icparams, final BasePropertyType prop) throws Throwable { if ((icparams == null) || icparams.isEmpty()) { return; } final Iterator it = icparams.iterator(); while (it.hasNext()) { final Parameter param = (Parameter) it.next(); final ParameterInfoIndex pii = ParameterInfoIndex.lookupPname(param.getName()); if (pii == null) { continue; } final JAXBElement<? extends BaseParameterType> xmlprop = doParameter(param, pii); if (xmlprop != null) { if (prop.getParameters() == null) { prop.setParameters(new ArrayOfParameters()); } prop.getParameters().getBaseParameter().add(xmlprop); } } }
private static ArrayOfParameters getAop(final BasePropertyType prop) { ArrayOfParameters pars = prop.getParameters(); if (pars == null) { pars = new ArrayOfParameters(); prop.setParameters(pars); } return pars; }