blob: d3637c25e5105ce2de93a95f3f3ca16a3cc2b22f (
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
|
package org.openecomp.sdc.be.datatypes.elements;
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;
}
}
|