| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.fzi.se.accuracy.issues; |
| 5 | |
| 6 | import de.fzi.se.quality.qualityannotation.CharacterisedPCMParameterPartition; |
| 7 | import de.uka.ipd.sdq.errorhandling.SeverityAndIssue; |
| 8 | import de.uka.ipd.sdq.errorhandling.SeverityEnum; |
| 9 | |
| 10 | /**Issue caused by an {@link CharacterisedPCMParameterPartition} which is experienced on source code level and contains the relevant UUIDs. |
| 11 | * @author groenda |
| 12 | * |
| 13 | */ |
| 14 | public class CharacterisedPCMParameterPartitionSourceCodeIssue extends SeverityAndIssue { |
| 15 | |
| 16 | /** UUID of the partition*/ |
| 17 | private String partitionId; |
| 18 | |
| 19 | public CharacterisedPCMParameterPartitionSourceCodeIssue( |
| 20 | SeverityEnum error, String message, Object element, |
| 21 | String objectResourceName, String partitionId) { |
| 22 | super(error, message, element, objectResourceName); |
| 23 | this.partitionId = partitionId; |
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | public String getDetails() { |
| 28 | String details = super.getDetails(); |
| 29 | if (partitionId != null) { |
| 30 | details += "UUID of partition: " + partitionId+ "\n\n"; |
| 31 | } |
| 32 | return details; |
| 33 | } |
| 34 | |
| 35 | } |