aboutsummaryrefslogtreecommitdiffstats
path: root/operation-utils/src/main/resources/operationEnum.java_template
blob: 4bf3ec0040b35db5f3327f7eae211077a341eccf (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
package $packageName;

import org.openecomp.entity.EcompOperationEnum;

public enum ${name}OperationEnum implements EcompOperationEnum {
<% 
def last 
operations.each { n, v -> last = n }
operations.each { n, v -> %>
  ${n.replaceAll('[-&@#:]','_')}("$n")${n==last ? "" : ","}\
<% } %> ; 


	private String n;
	
	private ${name}OperationEnum(String n) {
		this.n = n;
	}

	@Override
	public String toString() {
		return n;
	}

}