2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.datatypes.elements;
23 import java.io.Serializable;
25 import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
26 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
28 public class ComponentInstanceDataDefinition extends ToscaDataDefinition implements Serializable {
34 private static final long serialVersionUID = 7215033872921497743L;
38 private String uniqueId;
42 private String normalizedName;
44 private String componentUid;
46 private Long creationTime;
48 private Long modificationTime;
50 private String description;
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;
64 public ComponentInstanceDataDefinition() {
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;
87 public String getIcon() {
91 public void setIcon(String icon) {
94 public String getUniqueId() {
98 public void setUniqueId(String uniqueId) {
99 this.uniqueId = uniqueId;
102 public Long getCreationTime() {
106 public void setCreationTime(Long creationTime) {
107 this.creationTime = creationTime;
110 public Long getModificationTime() {
111 return modificationTime;
114 public void setModificationTime(Long modificationTime) {
115 this.modificationTime = modificationTime;
118 public String getDescription() {
122 public void setDescription(String description) {
123 this.description = description;
126 public String getPosX() {
130 public void setPosX(String posX) {
134 public String getPosY() {
138 public void setPosY(String posY) {
142 public String getComponentUid() {
146 public void setComponentUid(String resourceUid) {
147 this.componentUid = resourceUid;
150 public String getName() {
154 public void setName(String name) {
158 public Integer getPropertyValueCounter() {
159 return propertyValueCounter;
162 public void setPropertyValueCounter(Integer propertyValueCounter) {
163 this.propertyValueCounter = propertyValueCounter;
166 public String getNormalizedName() {
167 return normalizedName;
170 public void setNormalizedName(String normalizedName) {
171 this.normalizedName = normalizedName;
174 public OriginTypeEnum getOriginType() {
178 public void setOriginType(OriginTypeEnum originType) {
179 this.originType = originType;
182 public Integer getAttributeValueCounter() {
183 return attributeValueCounter;
186 public void setAttributeValueCounter(Integer attributeValueCounter) {
187 this.attributeValueCounter = attributeValueCounter;
190 public Integer getInputValueCounter() {
191 return inputValueCounter;
194 public void setInputValueCounter(Integer inputValueCounter) {
195 this.inputValueCounter = inputValueCounter;
198 public String getCustomizationUUID() {
199 return customizationUUID;
202 public void setCustomizationUUID(String customizationUUID) {
203 this.customizationUUID = customizationUUID;
206 public String getComponentName() {
207 return componentName;
210 public void setComponentName(String resourceName) {
211 this.componentName = resourceName;
214 public String getComponentVersion() {
215 return componentVersion;
218 public String getToscaComponentName() {
219 return toscaComponentName;
222 public void setToscaComponentName(String toscaComponentName) {
223 this.toscaComponentName = toscaComponentName;
226 public void setComponentVersion(String resourceVersion) {
227 this.componentVersion = resourceVersion;
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 + "]";