blob: c8ddc9d02761f1a5dc5750a4f012f7b3e2e35e9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.onap.sdc.dcae.composition.restmodels.ruleeditor;
import java.util.List;
public class ConditionGroup extends BaseCondition {
private String type;
private List<BaseCondition> children;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public List<BaseCondition> getChildren() {
return children;
}
public void setChildren(List<BaseCondition> children) {
this.children = children;
}
@Override
public boolean referencesTarget(String target) {
return children.stream().anyMatch(c -> c.referencesTarget(target));
}
}
|