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.openecomp.sdc.vendorsoftwareproduct.types.composition;
23 public class ComponentData implements CompositionDataEntity {
25 private String description;
26 private String displayName;
27 private String vfcCode;
28 private String nfcCode;
29 private String nfcFunction;
31 public String getName() {
35 public void setName(String name) {
39 public String getDescription() {
43 public void setDescription(String description) {
44 this.description = description;
47 public String getDisplayName() {
51 public void setDisplayName(String displayName) {
52 this.displayName = displayName;
55 public String getNfcCode() {
59 public void setNfcCode(String nfcCode) {
60 this.nfcCode = nfcCode;
63 public String getNfcFunction() {
67 public void setNfcFunction(String nfcFunction) {
68 this.nfcFunction = nfcFunction;
72 public int hashCode() {
73 int result = name.hashCode();
74 result = 31 * result + (description != null ? description.hashCode() : 0);
75 result = 31 * result + (displayName != null ? displayName.hashCode() : 0);
80 public boolean equals(Object object) {
84 if (!(object instanceof ComponentData)) {
88 ComponentData that = (ComponentData) object;
90 if (!name.equals(that.name)) {
93 if (description != null ? !description.equals(that.description) : that.description != null) {
96 return displayName != null ? displayName.equals(that.displayName) : that.displayName == null;
100 public String getVfcCode() {
104 public void setVfcCode(String vfcCode) {
105 this.vfcCode = vfcCode;