2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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 org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
25 public class AnnotationTypeDataDefinition extends ToscaDataDefinition {
27 protected String uniqueId;
28 protected String type;
29 protected String description;
31 protected Long creationTime;
32 protected Long modificationTime;
34 protected String version;
35 protected boolean highestVersion;
37 public AnnotationTypeDataDefinition() {}
39 public AnnotationTypeDataDefinition(AnnotationTypeDataDefinition other) {
40 uniqueId = other.uniqueId;
42 version = other.version;
43 description = other.description;
44 creationTime = other.creationTime;
45 modificationTime = other.modificationTime;
46 highestVersion = other.highestVersion;
49 public String getUniqueId() {
53 public void setUniqueId(String uniqueId) {
54 this.uniqueId = uniqueId;
58 public String getType() {
62 public void setType(String type) {
66 public String getDescription() {
70 public void setDescription(String description) {
71 this.description = description;
74 public Long getCreationTime() {
78 public void setCreationTime(Long creationTime) {
79 this.creationTime = creationTime;
82 public Long getModificationTime() {
83 return modificationTime;
86 public void setModificationTime(Long modificationTime) {
87 this.modificationTime = modificationTime;
91 public String getVersion() {
95 public void setVersion(String version) {
96 this.version = version;
99 public boolean isHighestVersion() {
100 return highestVersion;
103 public void setHighestVersion(boolean highestVersion) {
104 this.highestVersion = highestVersion;
108 public String toString() {
109 return getClass().getName() + ": [uniqueId=" + uniqueId + ", type=" + getType()
110 + ", version=" + version + ", highestVersion=" + highestVersion
111 + ", description=" + description
112 + ", creationTime=" + creationTime + ", modificationTime=" + modificationTime + "]";