diff options
author | 2017-03-13 13:51:35 +0000 | |
---|---|---|
committer | 2017-04-18 02:17:51 +0000 | |
commit | 37181837935f5e94fd02b32da0df966b498dd968 (patch) | |
tree | 294c24cebed722684a5a1ce4291b55db18322e4c /operation-utils/src/main/resources/operationEnum.java_template | |
parent | 12569365f092fe2993f8cd470c48331888a29a17 (diff) |
[DCAE-15] Changes related to version 1.1
See Jira for details
Change-Id: I225aa7a8952da4ddb0a93ac238aa79c8993f72b8
Signed-off-by: Carsten Lund <lund@research.att.com>
Diffstat (limited to 'operation-utils/src/main/resources/operationEnum.java_template')
-rw-r--r-- | operation-utils/src/main/resources/operationEnum.java_template | 17 |
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; + } + } |