blob: 367715661f5fbbe78d0f660d796b4763cf199e8b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.language.semantics.metadata;
public record ReferenceDetail(boolean containment) implements RelationDetail {
public static final ReferenceDetail CROSS_REFERENCE = new ReferenceDetail(false);
public static final ReferenceDetail CONTAINMENT_REFERENCE = new ReferenceDetail(true);
public static ReferenceDetail ofContainment(boolean containment) {
return containment ? CONTAINMENT_REFERENCE : CROSS_REFERENCE;
}
}
|