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.util.List;
27 public class DataTypeDataDefinition extends ToscaDataDefinition {
31 private String uniqueId;
33 // "boolean", "string", "float", "integer", "version" })
34 private String derivedFromName;
36 private String description;
39 * Timestamp of data type creation
41 private Long creationTime;
44 * Timestamp of the data type last update
46 private Long modificationTime;
48 private List<PropertyDataDefinition> propertiesData;
50 public DataTypeDataDefinition() {
54 public DataTypeDataDefinition(DataTypeDataDefinition p) {
56 this.uniqueId = p.uniqueId;
57 this.derivedFromName = p.derivedFromName;
58 this.description = p.description;
59 this.creationTime = p.creationTime;
60 this.modificationTime = p.modificationTime;
63 public String getName() {
67 public void setName(String name) {
71 public String getDerivedFromName() {
72 return derivedFromName;
75 public void setDerivedFromName(String derivedFromName) {
76 this.derivedFromName = derivedFromName;
79 public String getDescription() {
83 public void setDescription(String description) {
84 this.description = description;
87 public String getUniqueId() {
91 public void setUniqueId(String uniqueId) {
92 this.uniqueId = uniqueId;
95 public Long getCreationTime() {
99 public void setCreationTime(Long creationTime) {
100 this.creationTime = creationTime;
103 public Long getModificationTime() {
104 return modificationTime;
107 public void setModificationTime(Long modificationTime) {
108 this.modificationTime = modificationTime;
111 public List<PropertyDataDefinition> getPropertiesData() {
112 return propertiesData;
115 public void setPropertiesData(List<PropertyDataDefinition> propertiesData) {
116 this.propertiesData = propertiesData;
120 public String toString() {
121 return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
122 + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
123 + ", modificationTime=" + modificationTime + ", propertiesData=" + propertiesData + "]";