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.category;
23 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
25 public class GroupingDataDefinition extends ToscaDataDefinition {
28 private String normalizedName;
29 private String uniqueId;
31 public GroupingDataDefinition() {
35 public GroupingDataDefinition(GroupingDataDefinition c) {
37 this.normalizedName = c.normalizedName;
38 this.uniqueId = c.uniqueId;
41 public String getName() {
45 public void setName(String name) {
49 public String getNormalizedName() {
50 return normalizedName;
53 public void setNormalizedName(String normalizedName) {
54 this.normalizedName = normalizedName;
57 public String getUniqueId() {
61 public void setUniqueId(String uniqueId) {
62 this.uniqueId = uniqueId;
66 public int hashCode() {
69 result = prime * result + ((name == null) ? 0 : name.hashCode());
70 result = prime * result + ((normalizedName == null) ? 0 : normalizedName.hashCode());
71 result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
76 public boolean equals(Object obj) {
81 if (getClass() != obj.getClass())
83 GroupingDataDefinition other = (GroupingDataDefinition) obj;
85 if (other.name != null)
87 } else if (!name.equals(other.name))
89 if (normalizedName == null) {
90 if (other.normalizedName != null)
92 } else if (!normalizedName.equals(other.normalizedName))
94 if (uniqueId == null) {
95 if (other.uniqueId != null)
97 } else if (!uniqueId.equals(other.uniqueId))
103 public String toString() {
104 return "GroupingDataDefinition [name=" + name + ", normalizedName=" + normalizedName + ", uniqueId=" + uniqueId