return requirementDto;
}
@Override
public BlueprintDetailsDto map(lv.odylab.evedb.rpc.dto.BlueprintDetailsDto blueprintDetailsDto, Class<BlueprintDetailsDto> blueprintDetailsDtoClass) {
BlueprintDetailsDto blueprintDetails = new BlueprintDetailsDto();
blueprintDetails.setBlueprintTypeDto(map(blueprintDetailsDto.getInvBlueprintTypeDto(), BlueprintTypeDto.class));
List<TypeMaterialDto> materialDtos = new ArrayList<TypeMaterialDto>();
for (InvTypeMaterialDto invTypeMaterialDto : blueprintDetailsDto.getMaterialDtos()) {
materialDtos.add(map(invTypeMaterialDto, TypeMaterialDto.class));
}
List<TypeRequirementDto> manufacturingRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getManufacturingRequirementDtos()) {
manufacturingRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
List<TypeRequirementDto> timeProductivityRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getTimeProductivityRequirementDtos()) {
timeProductivityRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
List<TypeRequirementDto> materialProductivityRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getMaterialProductivityRequirementDtos()) {
materialProductivityRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
List<TypeRequirementDto> copyingRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getCopyingRequirementDtos()) {
copyingRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
List<TypeRequirementDto> reverseEngineeringRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getReverseEngineeringRequirementDtos()) {
reverseEngineeringRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
List<TypeRequirementDto> inventionRequirementDtos = new ArrayList<TypeRequirementDto>();
for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getInventionRequirementDtos()) {
inventionRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
}
blueprintDetails.setMaterialDtos(materialDtos);
blueprintDetails.setManufacturingRequirementDtos(manufacturingRequirementDtos);
blueprintDetails.setTimeProductivityRequirementDtos(timeProductivityRequirementDtos);
blueprintDetails.setMaterialProductivityRequirementDtos(materialProductivityRequirementDtos);
blueprintDetails.setCopyingRequirementDtos(copyingRequirementDtos);
blueprintDetails.setReverseEngineeringRequirementDtos(reverseEngineeringRequirementDtos);
blueprintDetails.setInventionRequirementDtos(inventionRequirementDtos);
return blueprintDetails;
}