/** * Sets link information elements -List of entries with information * about upstream sources. * * @param linkList the link list */ public void linkList(List<ServiceLink> linkList) { assert (linkList != null) : "linkList can not be null"; linkList().clear(); for (ServiceLink serviceLink : linkList) { linkList().add(serviceLink); } }
/** * Performs a deep copy of {@link ServiceLinkInfo} object. * * @param destServiceLinkInfo ServiceLinkInfo object to copy this object into. It cannot be null. * * @return UPA return value indicating success or failure of copy operation. */ public int copy(ServiceLinkInfo destServiceLinkInfo) { assert (destServiceLinkInfo != null) : "destServiceLinkInfo can not be null"; destServiceLinkInfo.clear(); destServiceLinkInfo.action(action()); int ret = CodecReturnCodes.SUCCESS; for (ServiceLink serviceLink : linkList()) { ServiceLink serviceLink2 = new ServiceLink(); ret = serviceLink.copy(serviceLink2); if (ret != CodecReturnCodes.SUCCESS) return ret; destServiceLinkInfo.linkList().add(serviceLink2); } return ret; }
return ret; for (ServiceLink serviceLink : linkList())