Initial OpenECOMP SDC commit
[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
27 public class ComponentInstanceDataDefinition implements Serializable {
28
29         /**
30          * 
31          */
32         private static final long serialVersionUID = 7215033872921497743L;
33
34         private String uniqueId;
35
36         private String name;
37         private String normalizedName;
38
39         private String componentUid;
40
41         private Long creationTime;
42
43         private Long modificationTime;
44
45         private String description;
46
47         private String posX;
48
49         private String posY;
50         private Integer propertyValueCounter = 1;
51         private Integer attributeValueCounter;
52         private Integer inputValueCounter = 1;
53         private OriginTypeEnum originType;
54
55         public ComponentInstanceDataDefinition() {
56                 super();
57         }
58
59         public ComponentInstanceDataDefinition(ComponentInstanceDataDefinition dataDefinition) {
60                 this.uniqueId = dataDefinition.uniqueId;
61                 this.name = dataDefinition.name;
62                 this.componentUid = dataDefinition.componentUid;
63                 this.creationTime = dataDefinition.creationTime;
64                 this.modificationTime = dataDefinition.modificationTime;
65                 this.description = dataDefinition.description;
66                 this.posX = dataDefinition.posX;
67                 this.posY = dataDefinition.posY;
68                 this.propertyValueCounter = dataDefinition.propertyValueCounter;
69                 this.normalizedName = dataDefinition.normalizedName;
70                 this.originType = dataDefinition.originType;
71
72         }
73
74         public String getUniqueId() {
75                 return uniqueId;
76         }
77
78         public void setUniqueId(String uniqueId) {
79                 this.uniqueId = uniqueId;
80         }
81
82         public Long getCreationTime() {
83                 return creationTime;
84         }
85
86         public void setCreationTime(Long creationTime) {
87                 this.creationTime = creationTime;
88         }
89
90         public Long getModificationTime() {
91                 return modificationTime;
92         }
93
94         public void setModificationTime(Long modificationTime) {
95                 this.modificationTime = modificationTime;
96         }
97
98         public String getDescription() {
99                 return description;
100         }
101
102         public void setDescription(String description) {
103                 this.description = description;
104         }
105
106         public String getPosX() {
107                 return posX;
108         }
109
110         public void setPosX(String posX) {
111                 this.posX = posX;
112         }
113
114         public String getPosY() {
115                 return posY;
116         }
117
118         public void setPosY(String posY) {
119                 this.posY = posY;
120         }
121
122         public String getComponentUid() {
123                 return componentUid;
124         }
125
126         public void setComponentUid(String resourceUid) {
127                 this.componentUid = resourceUid;
128         }
129
130         public String getName() {
131                 return name;
132         }
133
134         public void setName(String name) {
135                 this.name = name;
136         }
137
138         public Integer getPropertyValueCounter() {
139                 return propertyValueCounter;
140         }
141
142         public void setPropertyValueCounter(Integer propertyValueCounter) {
143                 this.propertyValueCounter = propertyValueCounter;
144         }
145
146         public String getNormalizedName() {
147                 return normalizedName;
148         }
149
150         public void setNormalizedName(String normalizedName) {
151                 this.normalizedName = normalizedName;
152         }
153
154         public OriginTypeEnum getOriginType() {
155                 return originType;
156         }
157
158         public void setOriginType(OriginTypeEnum originType) {
159                 this.originType = originType;
160         }
161
162         @Override
163         public String toString() {
164                 return "ComponentInstanceDataDefinition [uniqueId=" + uniqueId + ", name=" + name + ", normalizedName="
165                                 + normalizedName + ", componentUid=" + componentUid + ", creationTime=" + creationTime
166                                 + ", modificationTime=" + modificationTime + ", description=" + description + ", posX=" + posX
167                                 + ", posY=" + posY + ", propertyValueCounter=" + propertyValueCounter + ", originType=" + originType
168                                 + "]";
169         }
170
171         public Integer getAttributeValueCounter() {
172                 return attributeValueCounter;
173         }
174
175         public void setAttributeValueCounter(Integer attributeValueCounter) {
176                 this.attributeValueCounter = attributeValueCounter;
177         }
178
179         public Integer getInputValueCounter() {
180                 return inputValueCounter;
181         }
182
183         public void setInputValueCounter(Integer inputValueCounter) {
184                 this.inputValueCounter = inputValueCounter;
185         }
186
187 }