org.onap migration
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / NewNode.java
1 package org.onap.vid.model;
2
3 import java.text.DateFormat;
4 import java.text.SimpleDateFormat;
5 import java.util.HashMap;
6 import java.util.Map;
7
8 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
9 import org.onap.vid.asdc.beans.tosca.Input;
10
11
12 public class NewNode {
13         
14         /** The Constant LOG. */
15         private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(Node.class);
16         
17         /** The Constant dateFormat. */
18         final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
19
20         /** The uuid. */
21         private String uuid;
22         
23         /** The invariant uuid. */
24         private String invariantUuid;
25         
26         /** The description. */
27         private String description;
28         
29         /** The name. */
30         private String name;
31         
32         /** The version. */
33         private String version;
34         
35         /** The model customization uuid. */
36         private String customizationUuid;
37         
38         /** The inputs. */
39         private Map<String, Input> inputs;
40         
41         /** The get_input or other constructs from node template properties. */
42         private Map<String, CommandProperty> commands;
43         
44         /** The get_input or other constructs from node template properties. */
45         private Map<String, String> properties;
46         /**
47          * Instantiates a new node.
48          */
49         public NewNode() {
50                 this.commands = new HashMap<String, CommandProperty>();
51                 this.properties = new HashMap<String, String>();
52         }
53         
54         /**
55          * Gets the uuid.
56          *
57          * @return the uuid
58          */
59         public String getUuid() {
60                 return uuid;
61         }
62
63         /**
64          * Gets the invariant uuid.
65          *
66          * @return the invariant uuid
67          */
68         public String getInvariantUuid() {
69                 return invariantUuid;
70         }
71
72         /**
73          * Gets the description.
74          *
75          * @return the description
76          */
77         public String getDescription() {
78                 return description;
79         }
80
81         /**
82          * Gets the name.
83          *
84          * @return the name
85          */
86         public String getName() {
87                 return name;
88         }
89
90         /**
91          * Gets the version.
92          *
93          * @return the version
94          */
95         public String getVersion() {
96                 return version;
97         }
98         
99         /**
100          * Gets the customization uuid.
101          *
102          * @return the model customization uuid
103          */
104         public String getCustomizationUuid() {
105                 return customizationUuid;
106         }
107         /**
108          * Gets the inputs.
109          *
110          * @return the inputs
111          */
112         public Map<String, Input> getInputs() {
113                 return inputs;
114         }
115         /**
116          * Gets the commands.
117          *
118          * @return the commands
119          */
120         public Map<String, CommandProperty> getCommands() {
121                 return commands;
122         }
123         /**
124          * Gets the properties.
125          *
126          * @return the properties
127          */
128         public Map<String, String> getProperties() {
129                 return properties;
130         }
131         /**
132          * Sets the uuid.
133          *
134          * @param uuid the new uuid
135          */
136         public void setUuid(String uuid) {
137                 this.uuid = uuid;
138         }
139
140         /**
141          * Sets the invariant uuid.
142          *
143          * @param invariantUuid the new invariant uuid
144          */
145         public void setInvariantUuid(String invariantUuid) {
146                 this.invariantUuid = invariantUuid;
147         }
148
149         /**
150          * Sets the description.
151          *
152          * @param description the new description
153          */
154         public void setDescription(String description) {
155                 this.description = description;
156         }
157
158         /**
159          * Sets the name.
160          *
161          * @param name the new name
162          */
163         public void setName(String name) {
164                 this.name = name;
165         }
166
167         /**
168          * Sets the version.
169          *
170          * @param version the new version
171          */
172         public void setVersion(String version) {
173                 this.version = version;
174         }
175         /**
176          * Sets the customization uuid.
177          *
178          * @param u the new customization uuid
179          */
180         public void setCustomizationUuid(String u) {
181                 this.customizationUuid = u;
182         }
183
184         /**
185          * Sets the inputs.
186          *
187          * @param inputs the inputs
188          */
189         public void setInputs(Map<String, Input> inputs) {
190                 this.inputs = inputs;
191         }
192         /**
193          * Sets the commands.
194          *
195          * @param m the commands
196          */
197         public void setCommands( Map<String, CommandProperty>m ) {
198                 commands = m;
199         }
200         /**
201          * Sets the properties.
202          *
203          * @param p the properties
204          */
205         public void setProperties( Map<String, String>p) {
206                 properties = p;
207         }
208
209 }