aboutsummaryrefslogtreecommitdiffstats
path: root/operation-utils/src/main/resources/messageEnum.java_template
blob: d6c788406c8417445ed26c02cfe726bdcd04e6f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package $packageName;

import com.att.eelf.i18n.EELFResourceManager;
import org.openecomp.logger.EcompMessageEnum;

public enum ${name}MessageEnum implements EcompMessageEnum {
<% 
def last 
messages.each { n, v -> last = n }
messages.each { n, v -> %>
  ${n.replace('-','_')}${n==last ? ";" : ","}\
<% } %>

	static {
		EELFResourceManager.loadMessageBundle("${resourcePath}/$name");
	}
}