blob: 3cf8ce1266f24d789ce238aacd6426f4c3a4b9ad (
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
|
package org.openecomp.sdc.be.datatypes.elements;
import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum;
public enum PolicyTargetType {
GROUPS("GROUPS"),
COMPONENT_INSTANCES("COMPONENT_INSTANCES"),
TYPE_DOES_NOT_EXIST("TYPE_DOES_NOT_EXIST");
private String name;
PolicyTargetType(String name) {
this.name = name;
}
public String getName() {
return name;
}
public static PolicyTargetType getByNameIgnoreCase(String name) {
for (PolicyTargetType inst : PolicyTargetType.values()) {
if (inst.getName().equalsIgnoreCase(name)) {
return inst;
}
}
return null;
}
}
|