summaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/conflict-rest/conflict-rest-services/src/main/java/org/openecomp/sdcrests/conflict/rest/mapping/MapConflictInfoToDto.java
blob: e80ef5653d8bb42d69b23c71ae014edbe84bbe08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package org.openecomp.sdcrests.conflict.rest.mapping;

import org.openecomp.conflicts.types.ConflictInfo;
import org.openecomp.sdcrests.conflict.types.ConflictInfoDto;
import org.openecomp.sdcrests.mapping.MappingBase;

public class MapConflictInfoToDto extends MappingBase<ConflictInfo, ConflictInfoDto> {
  @Override
  public void doMapping(ConflictInfo source, ConflictInfoDto target) {
    target.setId(source.getId());
    target.setType(source.getType());
    target.setName(source.getName());
  }
}