1 package org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.convertor;
3 import com.amdocs.zusammen.adaptor.inbound.api.types.item.Element;
4 import org.openecomp.convertor.ElementConvertor;
5 import org.openecomp.core.utilities.file.FileUtils;
6 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity;
8 public class ElementToNicQuestionnaireConvertor extends ElementConvertor <NicEntity>{
11 public NicEntity convert( Element element) {
12 NicEntity nicEntity = new NicEntity();
14 nicEntity.setId(element.getElementId().getValue());
15 nicEntity.setQuestionnaireData( element.getData() == null
17 : new String(FileUtils.toByteArray(element.getData())));