2 * ============LICENSE_START========================================================================
\r
3 * ONAP : tr-069-adapter
\r
4 * =================================================================================================
\r
5 * Copyright (C) 2020 CommScope Inc Intellectual Property.
\r
6 * =================================================================================================
\r
7 * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
\r
8 * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
\r
9 * may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
\r
14 * either express or implied. See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
16 * ===============LICENSE_END=======================================================================
\r
19 package org.commscope.tr069adapter.acs.common;
\r
21 import com.fasterxml.jackson.annotation.JsonTypeInfo;
\r
23 import java.io.Serializable;
\r
25 @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
\r
26 public class ParameterDTO implements Serializable {
\r
28 private static final long serialVersionUID = 1460021542834472410L;
\r
30 private String paramName;
\r
31 private String paramValue;
\r
32 private String dataType;
\r
33 private boolean isProcessed;
\r
35 public ParameterDTO() {
\r
39 public ParameterDTO(String paramName, String paramValue) {
\r
41 this.paramName = paramName;
\r
42 this.paramValue = paramValue;
\r
45 public ParameterDTO(String paramName, String paramValue, String dataType) {
\r
47 this.paramName = paramName;
\r
48 this.paramValue = paramValue;
\r
49 this.dataType = dataType;
\r
52 public String getParamName() {
\r
56 public void setParamName(String paramName) {
\r
57 this.paramName = paramName;
\r
60 public String getParamValue() {
\r
64 public void setParamValue(String paramValue) {
\r
65 this.paramValue = paramValue;
\r
68 public String getDataType() {
\r
72 public void setDataType(String dataType) {
\r
73 this.dataType = dataType;
\r
76 public boolean isProcessed() {
\r
80 public void setProcessed(boolean isProcessed) {
\r
81 this.isProcessed = isProcessed;
\r
85 public String toString() {
\r
86 return "ParameterDTO [paramName=" + paramName + ", paramValue=" + paramValue + ", dataType="
\r
91 public boolean equals(Object obj) {
\r
96 if (getClass() != obj.getClass())
\r
98 final ParameterDTO other = (ParameterDTO) obj;
\r
99 if (paramName == null) {
\r
100 if (other.paramName != null)
\r
102 } else if (!paramName.equals(other.paramName)) {
\r
105 if (paramValue == null) {
\r
106 if (other.paramValue != null)
\r
108 } else if (!paramValue.equals(other.paramValue)) {
\r
111 if (dataType == null) {
\r
112 if (other.dataType != null)
\r
114 } else if (!dataType.equals(other.dataType)) {
\r
121 public int hashCode() {
\r
122 final int prime = 31;
\r
124 result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());
\r
125 result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());
\r
126 result = prime * result + ((dataType == null) ? 0 : dataType.hashCode());
\r