Merge "Merge automation from ECOMP's repository"
[vid.git] / vid-automation / src / main / java / org / onap / sdc / ci / tests / devObjects / SubCategoryDataDefinition.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.sdc.ci.tests.devObjects;
22
23 import java.io.Serializable;
24 import java.util.List;
25
26 public class SubCategoryDataDefinition extends ToscaDataDefinition implements Serializable {
27         /**
28          * 
29          */
30         private static final long serialVersionUID = 8279397988497086676L;
31
32         private String name;
33         private String normalizedName;
34         private String uniqueId;
35         private List<String> icons;
36
37         public SubCategoryDataDefinition() {
38
39         }
40
41         public SubCategoryDataDefinition(SubCategoryDataDefinition c) {
42                 this.name = c.name;
43                 this.normalizedName = c.normalizedName;
44                 this.uniqueId = c.uniqueId;
45                 this.icons = c.icons;
46         }
47
48         public String getName() {
49                 return name;
50         }
51
52         public void setName(String name) {
53                 this.name = name;
54         }
55
56         public String getNormalizedName() {
57                 return normalizedName;
58         }
59
60         public void setNormalizedName(String normalizedName) {
61                 this.normalizedName = normalizedName;
62         }
63
64         public String getUniqueId() {
65                 return uniqueId;
66         }
67
68         public void setUniqueId(String uniqueId) {
69                 this.uniqueId = uniqueId;
70         }
71
72         public List<String> getIcons() {
73                 return icons;
74         }
75
76         public void setIcons(List<String> icons) {
77                 this.icons = icons;
78         }
79
80         @Override
81         public int hashCode() {
82                 final int prime = 31;
83                 int result = 1;
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());
88                 return result;
89         }
90
91         @Override
92         public boolean equals(Object obj) {
93                 if (this == obj)
94                         return true;
95                 if (obj == null)
96                         return false;
97                 if (getClass() != obj.getClass())
98                         return false;
99                 SubCategoryDataDefinition other = (SubCategoryDataDefinition) obj;
100                 if (name == null) {
101                         if (other.name != null)
102                                 return false;
103                 } else if (!name.equals(other.name))
104                         return false;
105                 if (normalizedName == null) {
106                         if (other.normalizedName != null)
107                                 return false;
108                 } else if (!normalizedName.equals(other.normalizedName))
109                         return false;
110                 if (uniqueId == null) {
111                         if (other.uniqueId != null)
112                                 return false;
113                 } else if (!uniqueId.equals(other.uniqueId))
114                         return false;
115                 if (icons == null) {
116                         if (other.icons != null)
117                                 return false;
118                 } else if (!icons.equals(other.icons))
119                         return false;
120                 return true;
121         }
122
123         @Override
124         public String toString() {
125                 return "SubCategoryDataDefinition [name=" + name + ", normalizedName=" + normalizedName + ", uniqueId="
126                                 + uniqueId + ", icons=" + icons + "]";
127         }
128 }