blob: dd10b9b9133b86e061fdfe87e409a2378322570d (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
package org.onap.sdc.dcae.composition.restmodels.ruleeditor;
import java.util.Objects;
public abstract class BaseCondition {
// UI evaluation fields
private String level;
private String name;
private String id;
public String getLevel() {
return level;
}
public String getName() {
return name;
}
public String getId() {
return id;
}
public void setLevel(String level) {
this.level = level;
}
public void setName(String name) {
this.name = name;
}
public void setId(String id) {
this.id = id;
}
public abstract boolean referencesTarget(String target);
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (null == obj || getClass() != obj.getClass()) {
return false;
}
BaseCondition other = (BaseCondition) obj;
return Objects.equals(id, other.id) && Objects.equals(level, other.level) && Objects.equals(name, other.name);
}
@Override
public abstract int hashCode();
}
|