blob: a27e79038cfcbff52c5c7b2393ab4fc589ad6e00 (
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
32
33
34
|
package org.onap.sdc.dcae.composition.restmodels.ruleeditor;
import java.util.Collection;
public abstract class BaseAction {
private String actionType;
// UI generated id
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getActionType() {
return actionType;
}
public void setActionType(String actionType) {
this.actionType = actionType;
}
public boolean hasDependencies(Collection<BaseAction> allActions) {
return allActions.stream().anyMatch(this::referencesTarget);
}
public abstract boolean referencesTarget(BaseAction other);
public abstract String strippedTarget();
}
|