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;
27 public class DataTypeDataDefinition extends ToscaDataDefinition implements Serializable {
32 private static final long serialVersionUID = 1751768352205892172L;
36 private String uniqueId;
38 // "boolean", "string", "float", "integer", "version" })
39 private String derivedFromName;
41 private String description;
44 * Timestamp of data type creation
46 private Long creationTime;
49 * Timestamp of the data type last update
51 private Long modificationTime;
53 public DataTypeDataDefinition() {
57 public DataTypeDataDefinition(DataTypeDataDefinition p) {
59 this.uniqueId = p.uniqueId;
60 this.derivedFromName = p.derivedFromName;
61 this.description = p.description;
62 this.creationTime = p.creationTime;
63 this.modificationTime = p.modificationTime;
66 public String getName() {
70 public void setName(String name) {
74 public String getDerivedFromName() {
75 return derivedFromName;
78 public void setDerivedFromName(String derivedFromName) {
79 this.derivedFromName = derivedFromName;
82 public String getDescription() {
86 public void setDescription(String description) {
87 this.description = description;
90 public String getUniqueId() {
94 public void setUniqueId(String uniqueId) {
95 this.uniqueId = uniqueId;
98 public Long getCreationTime() {
102 public void setCreationTime(Long creationTime) {
103 this.creationTime = creationTime;
106 public Long getModificationTime() {
107 return modificationTime;
110 public void setModificationTime(Long modificationTime) {
111 this.modificationTime = modificationTime;
115 public String toString() {
116 return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
117 + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
118 + ", modificationTime=" + modificationTime + "]";