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.mso.db.catalog.beans;
23 import java.io.Serializable;
25 public class HeatTemplateParam implements Serializable {
27 private String heatTemplateArtifactUuid;
28 private String paramName;
29 private boolean required;
30 private String paramType;
31 private String paramAlias;
32 public static final long serialVersionUID = -1322322139926390329L;
34 public HeatTemplateParam() {}
36 public String getHeatTemplateArtifactUuid() {
37 return this.heatTemplateArtifactUuid;
39 public void setHeatTemplateArtifactUuid(String heatTemplateArtifactUuid) {
40 this.heatTemplateArtifactUuid = heatTemplateArtifactUuid;
43 public String getParamName() {
46 public void setParamName(String paramName) {
47 this.paramName = paramName;
49 public boolean isRequired() {
52 public void setRequired(boolean required) {
53 this.required = required;
55 public String getParamAlias() {
58 public void setParamAlias(String paramAlias) {
59 this.paramAlias = paramAlias;
62 public String getParamType() {
65 public void setParamType (String paramType) {
66 this.paramType = paramType;
71 public String toString () {
72 return "Param=" + paramName + ",type=" + paramType + ",required=" + required + ",paramAlias=" + paramAlias + ", heatTemplateArtifactUuid=" + this.heatTemplateArtifactUuid;
76 public boolean equals (Object o) {
77 if (!(o instanceof HeatTemplateParam)) {
83 HeatTemplateParam htp = (HeatTemplateParam) o;
84 if (htp.getHeatTemplateArtifactUuid().equals(this.heatTemplateArtifactUuid) && htp.getParamName().equalsIgnoreCase(this.paramName)) {
91 public int hashCode () {
93 result = this.paramName == null ? 0 : this.paramName.hashCode() + this.heatTemplateArtifactUuid == null ? 0 : this.heatTemplateArtifactUuid.hashCode();