1 package org.onap.vid.model;
3 import java.text.DateFormat;
4 import java.text.SimpleDateFormat;
5 import java.util.HashMap;
8 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
9 import org.onap.vid.asdc.beans.tosca.Input;
12 public class NewNode {
14 /** The Constant LOG. */
15 private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(Node.class);
17 /** The Constant dateFormat. */
18 final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
23 /** The invariant uuid. */
24 private String invariantUuid;
26 /** The description. */
27 private String description;
33 private String version;
35 /** The model customization uuid. */
36 private String customizationUuid;
39 private Map<String, Input> inputs;
41 /** The get_input or other constructs from node template properties. */
42 private Map<String, CommandProperty> commands;
44 /** The get_input or other constructs from node template properties. */
45 private Map<String, String> properties;
47 * Instantiates a new node.
50 this.commands = new HashMap<String, CommandProperty>();
51 this.properties = new HashMap<String, String>();
59 public String getUuid() {
64 * Gets the invariant uuid.
66 * @return the invariant uuid
68 public String getInvariantUuid() {
73 * Gets the description.
75 * @return the description
77 public String getDescription() {
86 public String getName() {
95 public String getVersion() {
100 * Gets the customization uuid.
102 * @return the model customization uuid
104 public String getCustomizationUuid() {
105 return customizationUuid;
112 public Map<String, Input> getInputs() {
118 * @return the commands
120 public Map<String, CommandProperty> getCommands() {
124 * Gets the properties.
126 * @return the properties
128 public Map<String, String> getProperties() {
134 * @param uuid the new uuid
136 public void setUuid(String uuid) {
141 * Sets the invariant uuid.
143 * @param invariantUuid the new invariant uuid
145 public void setInvariantUuid(String invariantUuid) {
146 this.invariantUuid = invariantUuid;
150 * Sets the description.
152 * @param description the new description
154 public void setDescription(String description) {
155 this.description = description;
161 * @param name the new name
163 public void setName(String name) {
170 * @param version the new version
172 public void setVersion(String version) {
173 this.version = version;
176 * Sets the customization uuid.
178 * @param u the new customization uuid
180 public void setCustomizationUuid(String u) {
181 this.customizationUuid = u;
187 * @param inputs the inputs
189 public void setInputs(Map<String, Input> inputs) {
190 this.inputs = inputs;
195 * @param m the commands
197 public void setCommands( Map<String, CommandProperty>m ) {
201 * Sets the properties.
203 * @param p the properties
205 public void setProperties( Map<String, String>p) {