2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.translator.datatypes.heattotosca.unifiedmodel.consolidation;
24 * The type get attribute data.
26 public class GetAttrFuncData {
28 private String fieldName;
29 private String attributeName;
31 public GetAttrFuncData(){}
33 public GetAttrFuncData(String fieldName, String attributeName) {
34 this.fieldName = fieldName;
35 this.attributeName = attributeName;
38 public String getFieldName() {
42 public void setFieldName(String fieldName) {
43 this.fieldName = fieldName;
46 public String getAttributeName() {
50 public void setAttributeName(String attributeName) {
51 this.attributeName = attributeName;
55 public boolean equals(Object o) {
59 if (o == null || getClass() != o.getClass()) {
63 GetAttrFuncData that = (GetAttrFuncData) o;
65 if (fieldName != null ? !fieldName.equals(that.fieldName) : that.fieldName != null) {
68 if (attributeName != null ? !attributeName.equals(that.attributeName)
69 : that.attributeName != null) {
77 public int hashCode() {
78 int result = fieldName != null ? fieldName.hashCode() : 0;
79 result = 31 * result + (attributeName != null ? attributeName.hashCode() : 0);