1 package org.openecomp.sdc.be.model;
3 import org.openecomp.sdc.be.datatypes.elements.AnnotationTypeDataDefinition;
4 import org.openecomp.sdc.be.model.utils.TypeCompareUtils;
7 import java.util.Objects;
9 public class AnnotationTypeDefinition extends AnnotationTypeDataDefinition {
12 public AnnotationTypeDefinition() {
16 public AnnotationTypeDefinition(AnnotationTypeDataDefinition annotationTypeDataDefinition) {
17 super(annotationTypeDataDefinition);
20 protected List<PropertyDefinition> properties;
22 public List<PropertyDefinition> getProperties() {
26 public void setProperties(List<PropertyDefinition> properties) {
27 this.properties = properties;
31 * This method compares definition properties and ignores products such as
32 * actual graph ids that were already assigned
34 public boolean isSameDefinition(AnnotationTypeDefinition other) {
35 if (this == other) return true;
36 if (other == null) return false;
38 return Objects.equals(type, other.type) &&
39 Objects.equals(description, other.description) &&
40 TypeCompareUtils.propertiesEquals(properties, other.properties);