diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java')
-rw-r--r-- | openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java | 58 |
1 files changed, 26 insertions, 32 deletions
diff --git a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java index c822a78a93..7ed8203bfe 100644 --- a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java +++ b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/HeatPseudoParameters.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,39 +23,33 @@ package org.openecomp.sdc.heat.datatypes.model; import java.util.ArrayList; import java.util.List; -public enum HeatPseudoParameters { - OS_STACK_NAME("OS::stack_name"), - OS_STACK_ID("OS::stack_id"), - OS_PROJECT_ID("OS::project_id"); - - private static List<String> pseudoParameterNames; +import lombok.Getter; - static { - pseudoParameterNames = new ArrayList<>(); - for (HeatPseudoParameters parameter : HeatPseudoParameters.values()) { - pseudoParameterNames.add(parameter.getPseudoParameter()); +@Getter +public enum HeatPseudoParameters { + OS_STACK_NAME("OS::stack_name"), + OS_STACK_ID("OS::stack_id"), + OS_PROJECT_ID("OS::project_id"); + + private static List<String> pseudoParameterNames; + private String pseudoParameter; + + static { + pseudoParameterNames = new ArrayList<>(); + for (HeatPseudoParameters parameter : HeatPseudoParameters.values()) { + pseudoParameterNames.add(parameter.getPseudoParameter()); + } } - } - - private String pseudoParameter; - - HeatPseudoParameters(String pseudoParameter) { - this.pseudoParameter = pseudoParameter; - } - public static List<String> getPseudoParameterNames() { - return pseudoParameterNames; - } - - public static void setPseudoParameterNames(List<String> pseudoParameterNames) { - HeatPseudoParameters.pseudoParameterNames = pseudoParameterNames; - } + HeatPseudoParameters(String pseudoParameter) { + this.pseudoParameter = pseudoParameter; + } - public String getPseudoParameter() { - return pseudoParameter; - } + public static List<String> getPseudoParameterNames() { + return pseudoParameterNames; + } - public void setPseudoParameter(String pseudoParameter) { - this.pseudoParameter = pseudoParameter; - } + public static void setPseudoParameterNames(List<String> pseudoParameterNames) { + HeatPseudoParameters.pseudoParameterNames = pseudoParameterNames; + } } |