summaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be')
-rw-r--r--openecomp-be/lib/openecomp-sdc-tosca-generator-lib/openecomp-sdc-tosca-generator-api/src/main/java/org/openecomp/sdc/generator/util/GeneratorConstants.java45
-rw-r--r--openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/datatypes/Constants.java7
2 files changed, 28 insertions, 24 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-tosca-generator-lib/openecomp-sdc-tosca-generator-api/src/main/java/org/openecomp/sdc/generator/util/GeneratorConstants.java b/openecomp-be/lib/openecomp-sdc-tosca-generator-lib/openecomp-sdc-tosca-generator-api/src/main/java/org/openecomp/sdc/generator/util/GeneratorConstants.java
index 69cd8fbbe7..3917ebe5ba 100644
--- a/openecomp-be/lib/openecomp-sdc-tosca-generator-lib/openecomp-sdc-tosca-generator-api/src/main/java/org/openecomp/sdc/generator/util/GeneratorConstants.java
+++ b/openecomp-be/lib/openecomp-sdc-tosca-generator-lib/openecomp-sdc-tosca-generator-api/src/main/java/org/openecomp/sdc/generator/util/GeneratorConstants.java
@@ -20,27 +20,26 @@
package org.openecomp.sdc.generator.util;
-public class GeneratorConstants {
- public static final String ALLOWED_FLAVORS_PROPERTY = "allowed_flavors";
- public static final String IMAGES_PROPERTY = "images";
- public static final String RELEASE_VENDOR = "releaseVendor";
- public static final String VNF_CONFIG_NODE_TEMPLATE_ID_SUFFIX = "_VNF_Configuration";
- public static final String VNF_NODE_TEMPLATE_ID_SUFFIX = "_VNF";
- public static final String PORT_TYPE_INTERNAL_NODE_TEMPLATE_SUFFIX = "_lan";
- public static final String PORT_TYPE_EXTERNAL_NODE_TEMPLATE_SUFFIX = "_wan";
- public static final String PORT_NODE_TEMPLATE_ID_SUFFIX = "_port";
-
- public static final String TOSCA_SERVICE_TEMPLATE_FILE_NAME_SUFFIX = "ServiceTemplate.yaml";
-
- //Manual VSP propeties
- public static final String NUM_CPUS = "num_cpus";
- public static final String DISK_SIZE = "disk_size";
- public static final String MEM_SIZE = "mem_size";
-
- public static final String NUM_CPUS_PROP_DESC_PREFIX = "Number of cpu for ";
- public static final String DISK_SIZE_PROP_DESC_PREFIX = "Disk size for ";
- public static final String MEM_SIZE_PROP_DESC_PREFIX = "Memory size for ";
-
-
-
+public final class GeneratorConstants {
+ public static final String ALLOWED_FLAVORS_PROPERTY = "allowed_flavors";
+ public static final String IMAGES_PROPERTY = "images";
+ public static final String RELEASE_VENDOR = "releaseVendor";
+ public static final String VNF_CONFIG_NODE_TEMPLATE_ID_SUFFIX = "_VNF_Configuration";
+ public static final String VNF_NODE_TEMPLATE_ID_SUFFIX = "_VNF";
+ public static final String PORT_TYPE_INTERNAL_NODE_TEMPLATE_SUFFIX = "_lan";
+ public static final String PORT_TYPE_EXTERNAL_NODE_TEMPLATE_SUFFIX = "_wan";
+ public static final String PORT_NODE_TEMPLATE_ID_SUFFIX = "_port";
+ public static final String TOSCA_SERVICE_TEMPLATE_FILE_NAME_SUFFIX = "ServiceTemplate.yaml";
+
+ //Manual VSP propeties
+ public static final String NUM_CPUS = "num_cpus";
+ public static final String DISK_SIZE = "disk_size";
+ public static final String MEM_SIZE = "mem_size";
+ public static final String NUM_CPUS_PROP_DESC_PREFIX = "Number of cpu for ";
+ public static final String DISK_SIZE_PROP_DESC_PREFIX = "Disk size for ";
+ public static final String MEM_SIZE_PROP_DESC_PREFIX = "Memory size for ";
+
+ // prevent utility class instantiation
+ private GeneratorConstants() {
+ }
}
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/datatypes/Constants.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/datatypes/Constants.java
index c9f5548681..7c766e2dd2 100644
--- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/datatypes/Constants.java
+++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/datatypes/Constants.java
@@ -18,7 +18,7 @@ package org.openecomp.core.converter.datatypes;
import java.io.File;
-public class Constants {
+public final class Constants {
public static final String mainStName = "MainServiceTemplate.yaml";
public static final String globalStName = "GlobalSubstitutionTypesServiceTemplate.yaml";
public static final String manifestFileName = "MainServiceTemplate.mf";
@@ -59,4 +59,9 @@ public class Constants {
public static final String globalSubstitution = "GlobalSubstitutionTypes";
public static final String externalFilesFolder = "External" + File.separator;
+
+ // prevent utility class instantiation
+ private Constants () {
+ }
+
}