invBlueprintTypeDto.setDumpVersion(invBlueprintType.getDumpVersion());
return invBlueprintTypeDto;
}
public BlueprintDetailsDto map(BlueprintDetails blueprintDetails) {
BlueprintDetailsDto blueprintDetailsDto = new BlueprintDetailsDto();
blueprintDetailsDto.setInvBlueprintTypeDto(map(blueprintDetails.getBlueprintType()));
List<InvTypeMaterialDto> invTypeMaterialDtos = new ArrayList<InvTypeMaterialDto>();
for (InvTypeMaterial invTypeMaterial : blueprintDetails.getMaterials()) {
invTypeMaterialDtos.add(map(invTypeMaterial));
}
blueprintDetailsDto.setMaterialDtos(invTypeMaterialDtos);
List<RamTypeRequirementDto> manufacturingRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getManufacturingRequirements()) {
manufacturingRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setManufacturingRequirementDtos(manufacturingRequirementDtos);
List<RamTypeRequirementDto> timeProductivityRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getTimeProductivityRequirements()) {
timeProductivityRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setTimeProductivityRequirementDtos(timeProductivityRequirementDtos);
List<RamTypeRequirementDto> materialProductivityRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getMaterialProductivityRequirements()) {
materialProductivityRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setMaterialProductivityRequirementDtos(materialProductivityRequirementDtos);
List<RamTypeRequirementDto> copyingRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getCopyingRequirements()) {
copyingRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setCopyingRequirementDtos(copyingRequirementDtos);
List<RamTypeRequirementDto> reverseEngineeringRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getReverseEngineeringRequirements()) {
reverseEngineeringRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setReverseEngineeringRequirementDtos(reverseEngineeringRequirementDtos);
List<RamTypeRequirementDto> inventionRequirementDtos = new ArrayList<RamTypeRequirementDto>();
for (RamTypeRequirement ramTypeRequirement : blueprintDetails.getInventionRequirements()) {
inventionRequirementDtos.add(map(ramTypeRequirement));
}
blueprintDetailsDto.setInventionRequirementDtos(inventionRequirementDtos);
return blueprintDetailsDto;
}