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.onap.sdc.ci.tests.devObjects;
23 import java.io.Serializable;
24 import java.util.List;
26 public class SubCategoryDataDefinition extends ToscaDataDefinition implements Serializable {
30 private static final long serialVersionUID = 8279397988497086676L;
33 private String normalizedName;
34 private String uniqueId;
35 private List<String> icons;
37 public SubCategoryDataDefinition() {
41 public SubCategoryDataDefinition(SubCategoryDataDefinition c) {
43 this.normalizedName = c.normalizedName;
44 this.uniqueId = c.uniqueId;
48 public String getName() {
52 public void setName(String name) {
56 public String getNormalizedName() {
57 return normalizedName;
60 public void setNormalizedName(String normalizedName) {
61 this.normalizedName = normalizedName;
64 public String getUniqueId() {
68 public void setUniqueId(String uniqueId) {
69 this.uniqueId = uniqueId;
72 public List<String> getIcons() {
76 public void setIcons(List<String> icons) {
81 public int hashCode() {
84 result = prime * result + ((name == null) ? 0 : name.hashCode());
85 result = prime * result + ((normalizedName == null) ? 0 : normalizedName.hashCode());
86 result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
87 result = prime * result + ((icons == null) ? 0 : icons.hashCode());
92 public boolean equals(Object obj) {
97 if (getClass() != obj.getClass())
99 SubCategoryDataDefinition other = (SubCategoryDataDefinition) obj;
101 if (other.name != null)
103 } else if (!name.equals(other.name))
105 if (normalizedName == null) {
106 if (other.normalizedName != null)
108 } else if (!normalizedName.equals(other.normalizedName))
110 if (uniqueId == null) {
111 if (other.uniqueId != null)
113 } else if (!uniqueId.equals(other.uniqueId))
116 if (other.icons != null)
118 } else if (!icons.equals(other.icons))
124 public String toString() {
125 return "SubCategoryDataDefinition [name=" + name + ", normalizedName=" + normalizedName + ", uniqueId="
126 + uniqueId + ", icons=" + icons + "]";