[Major] Minor added missing branches in AbstractStrolchRootElement

This commit is contained in:
Robert von Burg 2023-04-06 09:51:16 +02:00
parent 9bc0fa7a10
commit 74024136cb
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ public abstract class AbstractStrolchRootElement extends GroupedParameterizedEle
case Tags.RESOURCE -> relationP.setInterpretation(INTERPRETATION_RESOURCE_REF);
case Tags.ORDER -> relationP.setInterpretation(INTERPRETATION_ORDER_REF);
case Tags.ACTIVITY -> relationP.setInterpretation(INTERPRETATION_ACTIVITY_REF);
default -> throw new IllegalStateException("Unexpected value: " + element.getObjectType());
}
relationP.setUom(element.getType());
@ -89,6 +90,7 @@ public abstract class AbstractStrolchRootElement extends GroupedParameterizedEle
case Tags.RESOURCE -> relationsP.setInterpretation(INTERPRETATION_RESOURCE_REF);
case Tags.ORDER -> relationsP.setInterpretation(INTERPRETATION_ORDER_REF);
case Tags.ACTIVITY -> relationsP.setInterpretation(INTERPRETATION_ACTIVITY_REF);
default -> throw new IllegalStateException("Unexpected value: " + objectTypes.get(0));
}
relationsP.setUom(types.get(0));