diff options
Diffstat (limited to 'subprojects/language/src/main')
-rw-r--r-- | subprojects/language/src/main/java/tools/refinery/language/utils/ContainmentRole.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/subprojects/language/src/main/java/tools/refinery/language/utils/ContainmentRole.java b/subprojects/language/src/main/java/tools/refinery/language/utils/ContainmentRole.java new file mode 100644 index 00000000..708e10a9 --- /dev/null +++ b/subprojects/language/src/main/java/tools/refinery/language/utils/ContainmentRole.java | |||
@@ -0,0 +1,17 @@ | |||
1 | package tools.refinery.language.utils; | ||
2 | |||
3 | import tools.refinery.language.model.problem.PredicateKind; | ||
4 | |||
5 | public enum ContainmentRole { | ||
6 | NONE, | ||
7 | CONTAINED, | ||
8 | CONTAINMENT; | ||
9 | |||
10 | public static ContainmentRole fromPredicateKind(PredicateKind predicateKind) { | ||
11 | return switch (predicateKind) { | ||
12 | case CONTAINED -> CONTAINED; | ||
13 | case CONTAINMENT -> CONTAINMENT; | ||
14 | default -> NONE; | ||
15 | }; | ||
16 | } | ||
17 | } | ||