use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AllResponses in project open-smart-grid-platform by OSGP.
the class ActionMapperResponseService method mapAllActions.
public BundleResponse mapAllActions(final Serializable actionList) throws FunctionalException {
final BundleMessagesResponse bundleResponseMessageDataContainer = (BundleMessagesResponse) actionList;
final AllResponses allResponses = new ObjectFactory().createAllResponses();
final List<? extends ActionResponse> actionValueList = bundleResponseMessageDataContainer.getBundleList();
for (final ActionResponse actionValueResponseObject : actionValueList) {
final ConfigurableMapper mapper = this.getMapper(actionValueResponseObject);
final Class<?> clazz = this.getClazz(actionValueResponseObject);
final Response response = this.doMap(actionValueResponseObject, mapper, clazz);
allResponses.getResponseList().add(response);
}
final BundleResponse bundleResponse = new ObjectFactory().createBundleResponse();
bundleResponse.setAllResponses(allResponses);
return bundleResponse;
}
Aggregations