1 package org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation;
4 * The type get attribute data.
6 public class GetAttrFuncData {
8 private String fieldName;
9 private String attributeName;
11 public GetAttrFuncData(){}
13 public GetAttrFuncData(String fieldName, String attributeName) {
14 this.fieldName = fieldName;
15 this.attributeName = attributeName;
18 public String getFieldName() {
22 public void setFieldName(String fieldName) {
23 this.fieldName = fieldName;
26 public String getAttributeName() {
30 public void setAttributeName(String attributeName) {
31 this.attributeName = attributeName;
35 public boolean equals(Object o) {
39 if (o == null || getClass() != o.getClass()) {
43 GetAttrFuncData that = (GetAttrFuncData) o;
45 if (fieldName != null ? !fieldName.equals(that.fieldName) : that.fieldName != null) {
48 if (attributeName != null ? !attributeName.equals(that.attributeName)
49 : that.attributeName != null) {
57 public int hashCode() {
58 int result = fieldName != null ? fieldName.hashCode() : 0;
59 result = 31 * result + (attributeName != null ? attributeName.hashCode() : 0);