use of org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.RequestWrapper in project cxf by apache.
the class WrapperBeanGenerator method generateBeanClasses.
protected Collection<JavaClass> generateBeanClasses(final ServiceInfo serviceInfo) {
Collection<JavaClass> wrapperClasses = new HashSet<>();
for (OperationInfo op : serviceInfo.getInterface().getOperations()) {
if (op.getUnwrappedOperation() != null) {
if (op.hasInput()) {
RequestWrapper requestWrapper = new RequestWrapper();
requestWrapper.setOperationInfo(op);
JavaClass jClass = requestWrapper.buildWrapperBeanClass();
if (requestWrapper.isWrapperBeanClassNotExist()) {
wrapperClasses.add(jClass);
}
}
if (op.hasOutput()) {
ResponseWrapper responseWrapper = new ResponseWrapper();
responseWrapper.setOperationInfo(op);
JavaClass jClass = responseWrapper.buildWrapperBeanClass();
if (responseWrapper.isWrapperBeanClassNotExist()) {
wrapperClasses.add(jClass);
}
}
}
}
return wrapperClasses;
}
Aggregations