| 316 | } |
| 317 | |
| 318 | mitk::PropertyRelationRuleBase::RelationUIDType |
| 319 | mitk::PropertyRelationRuleBase::GetRelationUID(const IPropertyProvider *source, const IPropertyProvider *destination) const |
| 320 | { |
| 321 | auto result = this->GetRelationUIDs(source, destination); |
| 322 | |
| 323 | if (result.empty()) |
| 324 | { |
| 325 | mitkThrowException(NoPropertyRelationException); |
| 326 | } |
| 327 | else if(result.size()>1) |
| 328 | { |
| 329 | mitkThrow() << "Cannot return one(!) relation UID. Multiple relations exists for given rule, source and destination."; |
| 330 | } |
| 331 | |
| 332 | return result[0]; |
| 333 | } |
| 334 | |
| 335 | mitk::PropertyRelationRuleBase::InstanceIDType mitk::PropertyRelationRuleBase::NULL_INSTANCE_ID() |
| 336 | { |
nothing calls this directly
no test coverage detected