blob: a43c7dfec801f39358a45d637bf950bf7629a57b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.language.utils;
import tools.refinery.language.model.problem.PredicateKind;
public enum ContainmentRole {
NONE,
CONTAINED,
CONTAINMENT;
public static ContainmentRole fromPredicateKind(PredicateKind predicateKind) {
return switch (predicateKind) {
case CONTAINED -> CONTAINED;
case CONTAINMENT -> CONTAINMENT;
default -> NONE;
};
}
}
|