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
22 import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
\r
24 import java.io.Serializable;
\r
26 @JsonTypeInfo(use = Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
\r
27 public class ParameterDTO implements Serializable {
\r
29 private static final long serialVersionUID = 1460021542834472410L;
\r
31 private String paramName;
\r
32 private String paramValue;
\r
33 private String dataType;
\r
34 private boolean isProcessed;
\r
35 private boolean isInitiated = Boolean.FALSE;
\r
37 public ParameterDTO() {
\r
41 public ParameterDTO(String paramName, String paramValue) {
\r
43 this.paramName = paramName;
\r
44 this.paramValue = paramValue;
\r
47 public ParameterDTO(String paramName, String paramValue, String dataType) {
\r
49 this.paramName = paramName;
\r
50 this.paramValue = paramValue;
\r
51 this.dataType = dataType;
\r
54 public String getParamName() {
\r
58 public void setParamName(String paramName) {
\r
59 this.paramName = paramName;
\r
62 public String getParamValue() {
\r
66 public void setParamValue(String paramValue) {
\r
67 this.paramValue = paramValue;
\r
70 public String getDataType() {
\r
74 public void setDataType(String dataType) {
\r
75 this.dataType = dataType;
\r
78 public boolean isProcessed() {
\r
82 public void setProcessed(boolean isProcessed) {
\r
83 this.isProcessed = isProcessed;
\r
86 public boolean isInitiated() {
\r
90 public void setInitiated(boolean isInitiated) {
\r
91 this.isInitiated = isInitiated;
\r
95 public String toString() {
\r
96 return "ParameterDTO [paramName=" + paramName + ", paramValue=" + paramValue + ", dataType="
\r
101 public boolean equals(Object obj) {
\r
106 if (getClass() != obj.getClass())
\r
108 final ParameterDTO other = (ParameterDTO) obj;
\r
109 if (paramName == null) {
\r
110 if (other.paramName != null)
\r
112 } else if (!paramName.equals(other.paramName)) {
\r
115 if (paramValue == null) {
\r
116 if (other.paramValue != null)
\r
118 } else if (!paramValue.equals(other.paramValue)) {
\r
121 if (dataType == null) {
\r
122 if (other.dataType != null)
\r
124 } else if (!dataType.equals(other.dataType)) {
\r
131 public int hashCode() {
\r
132 final int prime = 31;
\r
134 result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());
\r
135 result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());
\r
136 result = prime * result + ((dataType == null) ? 0 : dataType.hashCode());
\r