Merge "[1707-OS] Updated license text according to the"
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / ComponentInstanceDataDefinition.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.datatypes.elements;
22
23 import java.io.Serializable;
24
25 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
26 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
27
28 public class ComponentInstanceDataDefinition extends ToscaDataDefinition implements Serializable {
29
30         /**
31          * 
32          */
33         
34         private static final long serialVersionUID = 7215033872921497743L;
35
36         private String icon;
37         
38         private String uniqueId;
39
40         private String name;
41         
42         private String normalizedName;
43
44         private String componentUid;
45
46         private Long creationTime;
47
48         private Long modificationTime;
49
50         private String description;
51
52         private String posX;
53
54         private String posY;
55         private Integer propertyValueCounter = 1;
56         private Integer attributeValueCounter;
57         private Integer inputValueCounter = 1;
58         private OriginTypeEnum originType;
59         private String customizationUUID;
60         private String componentName;
61         private String componentVersion;
62         private String toscaComponentName;
63         
64         public ComponentInstanceDataDefinition() {
65                 super();
66         }
67
68         public ComponentInstanceDataDefinition(ComponentInstanceDataDefinition dataDefinition) {
69                 this.icon = dataDefinition.icon;
70                 this.uniqueId = dataDefinition.uniqueId;
71                 this.name = dataDefinition.name;
72                 this.componentUid = dataDefinition.componentUid;
73                 this.creationTime = dataDefinition.creationTime;
74                 this.modificationTime = dataDefinition.modificationTime;
75                 this.description = dataDefinition.description;
76                 this.posX = dataDefinition.posX;
77                 this.posY = dataDefinition.posY;
78                 this.propertyValueCounter = dataDefinition.propertyValueCounter;
79                 this.normalizedName = dataDefinition.normalizedName;
80                 this.originType = dataDefinition.originType;
81                 this.customizationUUID = dataDefinition.customizationUUID;
82                 this.componentName = dataDefinition.componentName;
83                 this.componentVersion = dataDefinition.componentVersion;
84                 this.toscaComponentName = dataDefinition.toscaComponentName;
85         }
86         
87         public String getIcon() {
88                 return icon;
89         }
90
91         public void setIcon(String icon) {
92                 this.icon = icon;
93         }
94         public String getUniqueId() {
95                 return uniqueId;
96         }
97
98         public void setUniqueId(String uniqueId) {
99                 this.uniqueId = uniqueId;
100         }
101
102         public Long getCreationTime() {
103                 return creationTime;
104         }
105
106         public void setCreationTime(Long creationTime) {
107                 this.creationTime = creationTime;
108         }
109
110         public Long getModificationTime() {
111                 return modificationTime;
112         }
113
114         public void setModificationTime(Long modificationTime) {
115                 this.modificationTime = modificationTime;
116         }
117
118         public String getDescription() {
119                 return description;
120         }
121
122         public void setDescription(String description) {
123                 this.description = description;
124         }
125
126         public String getPosX() {
127                 return posX;
128         }
129
130         public void setPosX(String posX) {
131                 this.posX = posX;
132         }
133
134         public String getPosY() {
135                 return posY;
136         }
137
138         public void setPosY(String posY) {
139                 this.posY = posY;
140         }
141
142         public String getComponentUid() {
143                 return componentUid;
144         }
145
146         public void setComponentUid(String resourceUid) {
147                 this.componentUid = resourceUid;
148         }
149
150         public String getName() {
151                 return name;
152         }
153
154         public void setName(String name) {
155                 this.name = name;
156         }
157
158         public Integer getPropertyValueCounter() {
159                 return propertyValueCounter;
160         }
161
162         public void setPropertyValueCounter(Integer propertyValueCounter) {
163                 this.propertyValueCounter = propertyValueCounter;
164         }
165
166         public String getNormalizedName() {
167                 return normalizedName;
168         }
169
170         public void setNormalizedName(String normalizedName) {
171                 this.normalizedName = normalizedName;
172         }
173
174         public OriginTypeEnum getOriginType() {
175                 return originType;
176         }
177
178         public void setOriginType(OriginTypeEnum originType) {
179                 this.originType = originType;
180         }
181
182         public Integer getAttributeValueCounter() {
183                 return attributeValueCounter;
184         }
185
186         public void setAttributeValueCounter(Integer attributeValueCounter) {
187                 this.attributeValueCounter = attributeValueCounter;
188         }
189
190         public Integer getInputValueCounter() {
191                 return inputValueCounter;
192         }
193
194         public void setInputValueCounter(Integer inputValueCounter) {
195                 this.inputValueCounter = inputValueCounter;
196         }
197
198         public String getCustomizationUUID() {
199                 return customizationUUID;
200         }
201
202         public void setCustomizationUUID(String customizationUUID) {
203                 this.customizationUUID = customizationUUID;
204         }
205
206         public String getComponentName() {
207                 return componentName;
208         }
209
210         public void setComponentName(String resourceName) {
211                 this.componentName = resourceName;
212         }
213
214         public String getComponentVersion() {
215                 return componentVersion;
216         }
217
218         public String getToscaComponentName() {
219                 return toscaComponentName;
220         }
221
222         public void setToscaComponentName(String toscaComponentName) {
223                 this.toscaComponentName = toscaComponentName;
224         }
225
226         public void setComponentVersion(String resourceVersion) {
227                 this.componentVersion = resourceVersion;
228         }
229
230         @Override
231         public String toString() {
232                 return "ComponentInstanceDataDefinition [icon=" + icon + ", uniqueId=" + uniqueId + ", name=" + name + ", normalizedName=" + normalizedName + ", componentUid=" + componentUid + ", creationTime=" + creationTime + ", modificationTime="
233                                 + modificationTime + ", description=" + description + ", posX=" + posX + ", posY=" + posY + ", propertyValueCounter=" + propertyValueCounter + ", attributeValueCounter=" + attributeValueCounter + ", inputValueCounter="
234                                 + inputValueCounter + ", originType=" + originType + ", customizationUUID=" + customizationUUID + ", componentName=" + componentName + ", componentVersion=" + componentVersion + ", toscaComponentName=" + toscaComponentName + "]";
235         }
236
237 }