| 1124 | |
| 1125 | |
| 1126 | class ClassificationResult(Result): |
| 1127 | def to_string(self): |
| 1128 | if self.reason["type"] == "NOVALUE": |
| 1129 | return "The entity has no classification" |
| 1130 | elif self.reason["type"] == "VALUE": |
| 1131 | return f"The references \"{str(self.reason['actual'])}\" do not match the requirements" |
| 1132 | elif self.reason["type"] == "SYSTEM": |
| 1133 | return f"The systems \"{str(self.reason['actual'])}\" do not match the requirements" |
| 1134 | elif self.reason["type"] == "PROHIBITED": |
| 1135 | return "The classification should not have met the requirement" |
| 1136 | |
| 1137 | |
| 1138 | class PartOfResult(Result): |