[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / main / java / org / openecomp / sdc / translator / datatypes / heattotosca / unifiedmodel / consolidation / GetAttrFuncData.java
1 package org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation;
2
3 /**
4  * The type get attribute data.
5  */
6 public class GetAttrFuncData {
7
8   private String fieldName;
9   private String attributeName;
10
11   public GetAttrFuncData(){}
12
13   public GetAttrFuncData(String fieldName, String attributeName) {
14     this.fieldName = fieldName;
15     this.attributeName = attributeName;
16   }
17
18   public String getFieldName() {
19     return fieldName;
20   }
21
22   public void setFieldName(String fieldName) {
23     this.fieldName = fieldName;
24   }
25
26   public String getAttributeName() {
27     return attributeName;
28   }
29
30   public void setAttributeName(String attributeName) {
31     this.attributeName = attributeName;
32   }
33
34   @Override
35   public boolean equals(Object o) {
36     if (this == o) {
37       return true;
38     }
39     if (o == null || getClass() != o.getClass()) {
40       return false;
41     }
42
43     GetAttrFuncData that = (GetAttrFuncData) o;
44
45     if (fieldName != null ? !fieldName.equals(that.fieldName) : that.fieldName != null) {
46       return false;
47     }
48     if (attributeName != null ? !attributeName.equals(that.attributeName)
49         : that.attributeName != null) {
50       return false;
51     }
52
53     return true;
54   }
55
56   @Override
57   public int hashCode() {
58     int result = fieldName != null ? fieldName.hashCode() : 0;
59     result = 31 * result + (attributeName != null ? attributeName.hashCode() : 0);
60     return result;
61   }
62 }