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 public class DataTypeDataDefinition extends ToscaDataDefinition {
29 private String uniqueId;
31 // "boolean", "string", "float", "integer", "version" })
32 private String derivedFromName;
34 private String description;
37 * Timestamp of data type creation
39 private Long creationTime;
42 * Timestamp of the data type last update
44 private Long modificationTime;
46 public DataTypeDataDefinition() {
50 public DataTypeDataDefinition(DataTypeDataDefinition p) {
52 this.uniqueId = p.uniqueId;
53 this.derivedFromName = p.derivedFromName;
54 this.description = p.description;
55 this.creationTime = p.creationTime;
56 this.modificationTime = p.modificationTime;
59 public String getName() {
63 public void setName(String name) {
67 public String getDerivedFromName() {
68 return derivedFromName;
71 public void setDerivedFromName(String derivedFromName) {
72 this.derivedFromName = derivedFromName;
75 public String getDescription() {
79 public void setDescription(String description) {
80 this.description = description;
83 public String getUniqueId() {
87 public void setUniqueId(String uniqueId) {
88 this.uniqueId = uniqueId;
91 public Long getCreationTime() {
95 public void setCreationTime(Long creationTime) {
96 this.creationTime = creationTime;
99 public Long getModificationTime() {
100 return modificationTime;
103 public void setModificationTime(Long modificationTime) {
104 this.modificationTime = modificationTime;
108 public String toString() {
109 return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
110 + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
111 + ", modificationTime=" + modificationTime + "]";