aboutsummaryrefslogtreecommitdiffstats
path: root/operation-utils/src/main/resources/operationEnum.java_template
diff options
context:
space:
mode:
Diffstat (limited to 'operation-utils/src/main/resources/operationEnum.java_template')
-rw-r--r--operation-utils/src/main/resources/operationEnum.java_template13
1 files changed, 13 insertions, 0 deletions
diff --git a/operation-utils/src/main/resources/operationEnum.java_template b/operation-utils/src/main/resources/operationEnum.java_template
new file mode 100644
index 0000000..9ec9d3d
--- /dev/null
+++ b/operation-utils/src/main/resources/operationEnum.java_template
@@ -0,0 +1,13 @@
+
+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${n==last ? ";" : ","}\
+<% } %>
+}