From dbb1b144bd843ffdc8c181641c9abd10df51105e Mon Sep 17 00:00:00 2001 From: noahs Date: Sun, 23 Jun 2019 11:55:42 +0300 Subject: Add Lombok support to RelationshipType add @Data annotation Change-Id: I185a32166a6efe9d221c260a0f25d958dec2690e Issue-ID: SDC-2380 Signed-off-by: noahs --- .../tosca/datatypes/model/RelationshipType.java | 90 ++++------------------ 1 file changed, 15 insertions(+), 75 deletions(-) (limited to 'common') diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java index dacd5bcddf..b2ff1a3e41 100644 --- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java +++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/RelationshipType.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,83 +20,23 @@ package org.onap.sdc.tosca.datatypes.model; +import lombok.Data; + import java.util.List; import java.util.Map; +@Data public class RelationshipType { - private String derived_from; - private String version; - private Map metadata; - private String description; - private Map properties; - private Map attributes; - private Map interfaces; - private List valid_target_types; - //An optional list of one or more names of Capability Types that are valid targets - // for this relationship - - public String getDerived_from() { - return derived_from; - } - - public void setDerived_from(String derived_from) { - this.derived_from = derived_from; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Map getProperties() { - return properties; - } - - public void setProperties(Map properties) { - this.properties = properties; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public Map getInterfaces() { - return interfaces; - } - - public void setInterfaces(Map interfaces) { - this.interfaces = interfaces; - } - - public List getValid_target_types() { - return valid_target_types; - } + private String derived_from; + private String version; + private Map metadata; + private String description; + private Map properties; + private Map attributes; + private Map interfaces; + private List valid_target_types; + //An optional list of one or more names of Capability Types that are valid targets + // for this relationship - public void setValid_target_types(List valid_target_types) { - this.valid_target_types = valid_target_types; - } } -- cgit 1.2.3-korg