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_template17
1 files changed, 15 insertions, 2 deletions
diff --git a/operation-utils/src/main/resources/operationEnum.java_template b/operation-utils/src/main/resources/operationEnum.java_template
index 9ec9d3d..4bf3ec0 100644
--- a/operation-utils/src/main/resources/operationEnum.java_template
+++ b/operation-utils/src/main/resources/operationEnum.java_template
@@ -8,6 +8,19 @@ public enum ${name}OperationEnum implements EcompOperationEnum {
def last
operations.each { n, v -> last = n }
operations.each { n, v -> %>
- $n${n==last ? ";" : ","}\
-<% } %>
+ ${n.replaceAll('[-&@#:]','_')}("$n")${n==last ? "" : ","}\
+<% } %> ;
+
+
+ private String n;
+
+ private ${name}OperationEnum(String n) {
+ this.n = n;
+ }
+
+ @Override
+ public String toString() {
+ return n;
+ }
+
}