1 package org.onap.vid.model;
3 import java.util.HashMap;
5 import java.util.regex.Pattern;
7 public class NewVNF extends NewNode {
9 /** The pattern used to normalize VNF names */
10 static final Pattern COMPONENT_INSTANCE_NAME_DELIMETER_PATTERN = Pattern.compile("[\\.\\-]+");
12 /** The model customization name. */
13 private String modelCustomizationName;
15 /** The vf modules. */
16 private Map<String, VfModule> vfModules = new HashMap<>();
18 /** The volume groups. */
19 private Map<String, VolumeGroup> volumeGroups = new HashMap<>();
22 * Instantiates a newvnf.
29 * Gets the model customization name.
31 * @return the model customization name
33 public String getModelCustomizationName() {
34 return modelCustomizationName;
38 * Gets the vf modules.
40 * @return the vf modules
42 public Map<String, VfModule> getVfModules() {
47 * Sets the vf modules.
49 * @param vfModules the vf modules
51 public void setVfModules(Map<String, VfModule> vfModules) {
52 this.vfModules = vfModules;
56 * Gets the volume groups.
58 * @return the volume groups
60 public Map<String, VolumeGroup> getVolumeGroups() {
65 * Sets the volume groups.
67 * @param volumeGroups the volume groups
69 public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) {
70 this.volumeGroups = volumeGroups;
75 * Sets the model customization name.
77 * @param modelCustomizationName the new model customization name
79 public void setModelCustomizationName(String modelCustomizationName) {
80 this.modelCustomizationName = modelCustomizationName;
83 * Normalize the VNF name
85 * @return the normalized name
87 public static String normalizeName (String originalName) {
88 return VNF.normalizeName(originalName);