/** * Copy data from a CIMI object to a service object. * * @param context The current context * @param dataCimi Source CIMI object * @param dataService Destination Service object */ protected void doCopyToService( final CimiContext context, final CimiNetworkNetworkPort dataCimi, final NetworkNetworkPort dataService) { this.fill(context, dataCimi, dataService); dataService.setNetworkPort((NetworkPort) context.convertNextService(dataCimi.getNetworkPort())); }
/** * Copy data from a service object to a CIMI object. * * @param context The current context * @param dataService Source service object * @param dataCimi Destination CIMI object */ protected void doCopyToCimi( final CimiContext context, final NetworkNetworkPort dataService, final CimiNetworkNetworkPort dataCimi) { this.fill(context, dataService, dataCimi); if (true == context.mustBeExpanded(dataCimi)) { dataCimi.setNetworkPort( (CimiNetworkPort) context.convertNextCimi(dataService.getNetworkPort(), CimiNetworkPort.class)); } }