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 org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
25 import java.io.Serializable;
26 import java.util.List;
29 public class GroupTypeDataDefinition extends ToscaDataDefinition implements Serializable {
34 private static final long serialVersionUID = -7001817818907172496L;
36 private String uniqueId;
40 private String version;
42 private String derivedFrom;
44 private List<String> members;
46 private Map<String, String> metadata;
48 private String description;
51 * Timestamp of data type creation
53 private Long creationTime;
56 * Timestamp of the data type last update
58 private Long modificationTime;
60 private boolean highestVersion;
62 public GroupTypeDataDefinition() {
66 public GroupTypeDataDefinition(GroupTypeDataDefinition p) {
67 this.uniqueId = p.uniqueId;
69 this.version = p.version;
70 this.members = p.members;
71 this.metadata = p.metadata;
72 // this.derivedFromName = p.derivedFromName;
73 this.description = p.description;
74 this.creationTime = p.creationTime;
75 this.modificationTime = p.modificationTime;
78 public String getType() {
82 public void setType(String type) {
86 public String getVersion() {
90 public void setVersion(String version) {
91 this.version = version;
94 public List<String> getMembers() {
98 public void setMembers(List<String> members) {
99 this.members = members;
102 public Map<String, String> getMetadata() {
106 public void setMetadata(Map<String, String> metadata) {
107 this.metadata = metadata;
110 public String getDescription() {
114 public void setDescription(String description) {
115 this.description = description;
118 public String getUniqueId() {
122 public void setUniqueId(String uniqueId) {
123 this.uniqueId = uniqueId;
126 public Long getCreationTime() {
130 public void setCreationTime(Long creationTime) {
131 this.creationTime = creationTime;
134 public Long getModificationTime() {
135 return modificationTime;
138 public void setModificationTime(Long modificationTime) {
139 this.modificationTime = modificationTime;
143 public String toString() {
144 return "GroupTypeDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", version=" + version
145 + ", members=" + members + ", metadata=" + metadata + ", description=" + description + ", creationTime="
146 + creationTime + ", modificationTime=" + modificationTime + "]";
149 public String getDerivedFrom() {
153 public void setDerivedFrom(String derivedFrom) {
154 this.derivedFrom = derivedFrom;
157 public boolean isHighestVersion() {
158 return highestVersion;
161 public void setHighestVersion(boolean isLatestVersion) {
162 this.highestVersion = isLatestVersion;