use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.CaptureObjects in project open-smart-grid-platform by OSGP.
the class PowerQualityProfileResponseDataConverter method convert.
@Override
public org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData convert(final PowerQualityProfileData source, final Type<? extends org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData> destinationType, final MappingContext mappingContext) {
final org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData result = new org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData();
result.setLogicalName(this.mapperFacade.map(source.getLogicalName(), ObisCodeValues.class));
final CaptureObjects captureObjects = new CaptureObjects();
captureObjects.getCaptureObjects().addAll(this.mapperFacade.mapAsList(source.getCaptureObjects(), CaptureObject.class));
result.setCaptureObjectList(captureObjects);
final ProfileEntries profileEntries = new ProfileEntries();
profileEntries.getProfileEntries().addAll(this.mapProfileEntries(source));
result.setProfileEntryList(profileEntries);
return result;
}
Aggregations