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;
27 public class ComponentInstanceDataDefinition implements Serializable {
32 private static final long serialVersionUID = 7215033872921497743L;
34 private String uniqueId;
37 private String normalizedName;
39 private String componentUid;
41 private Long creationTime;
43 private Long modificationTime;
45 private String description;
50 private Integer propertyValueCounter = 1;
51 private Integer attributeValueCounter;
52 private Integer inputValueCounter = 1;
53 private OriginTypeEnum originType;
55 public ComponentInstanceDataDefinition() {
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;
74 public String getUniqueId() {
78 public void setUniqueId(String uniqueId) {
79 this.uniqueId = uniqueId;
82 public Long getCreationTime() {
86 public void setCreationTime(Long creationTime) {
87 this.creationTime = creationTime;
90 public Long getModificationTime() {
91 return modificationTime;
94 public void setModificationTime(Long modificationTime) {
95 this.modificationTime = modificationTime;
98 public String getDescription() {
102 public void setDescription(String description) {
103 this.description = description;
106 public String getPosX() {
110 public void setPosX(String posX) {
114 public String getPosY() {
118 public void setPosY(String posY) {
122 public String getComponentUid() {
126 public void setComponentUid(String resourceUid) {
127 this.componentUid = resourceUid;
130 public String getName() {
134 public void setName(String name) {
138 public Integer getPropertyValueCounter() {
139 return propertyValueCounter;
142 public void setPropertyValueCounter(Integer propertyValueCounter) {
143 this.propertyValueCounter = propertyValueCounter;
146 public String getNormalizedName() {
147 return normalizedName;
150 public void setNormalizedName(String normalizedName) {
151 this.normalizedName = normalizedName;
154 public OriginTypeEnum getOriginType() {
158 public void setOriginType(OriginTypeEnum originType) {
159 this.originType = originType;
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
171 public Integer getAttributeValueCounter() {
172 return attributeValueCounter;
175 public void setAttributeValueCounter(Integer attributeValueCounter) {
176 this.attributeValueCounter = attributeValueCounter;
179 public Integer getInputValueCounter() {
180 return inputValueCounter;
183 public void setInputValueCounter(Integer inputValueCounter) {
184 this.inputValueCounter = inputValueCounter;