| 1136 | |
| 1137 | |
| 1138 | class PartOfResult(Result): |
| 1139 | def to_string(self): |
| 1140 | if self.reason["type"] == "NOVALUE": |
| 1141 | return "The entity has no relationship" |
| 1142 | elif self.reason["type"] == "ENTITY": |
| 1143 | return f"The entity has a relationship with incorrect entities: \"{str(self.reason['actual'])}\"" |
| 1144 | elif self.reason["type"] == "PREDEFINEDTYPE": |
| 1145 | return f"The entity has a relationship with incorrect predefined type: \"{str(self.reason['actual'])}\"" |
| 1146 | elif self.reason["type"] == "PROHIBITED": |
| 1147 | return "The relationship should not have met the requirement" |
| 1148 | |
| 1149 | |
| 1150 | class PropertyResult(Result): |