if (holder) {
clazz = getHoldedClass(clazzType, parameterGenTypes[i]);
}
for (Annotation anno : paraAnns[i]) {
if (anno.annotationType() == WebParam.class) {
WebParam webParam = (WebParam)anno;
if (!webParam.header()
&& (webParam.mode() == WebParam.Mode.IN || webParam.mode() == WebParam.Mode.INOUT)) {
criteria1 = true;
}
if (!method.getReturnType().getName().equalsIgnoreCase("void") && !webParam.header()
&& (webParam.mode() == WebParam.Mode.OUT || webParam.mode() == WebParam.Mode.INOUT)) {
criteria2 = false;
}
if (method.getReturnType().getName().equalsIgnoreCase("void") && !webParam.header()
&& (webParam.mode() == WebParam.Mode.OUT || webParam.mode() == WebParam.Mode.INOUT)) {
nonHeaderParamCount++;
}
paraName = webParam.name().length() > 0 ? webParam.name() : paraName;
partName = webParam.partName().length() > 0 ? webParam.partName() : paraName;
paraTNS = webParam.targetNamespace().length() > 0
? webParam.targetNamespace() : paraTNS;
QName requestQN = new QName(paraTNS, paraName);
TypeReference typeref = new TypeReference(requestQN, clazz, paraAnns[i]);
JavaParameter jp;
if (holder) {
if (webParam.mode() == WebParam.Mode.INOUT) {
jp = new JavaParameter(typeref.tagName.getLocalPart(), typeref,
JavaType.Style.INOUT);
} else {
jp = new JavaParameter(typeref.tagName.getLocalPart(), typeref,
JavaType.Style.OUT);
}
} else {
jp = new JavaParameter(typeref.tagName.getLocalPart(), typeref, JavaType.Style.IN);
}
jp.setName(paraName);
jp.setPartName(partName);
jp.setHeader(webParam.header());
jp.setTargetNamespace(paraTNS);
paras.add(jp);
}
}
i++;