--- /dev/null
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.acs.common;\r
+\r
+import com.fasterxml.jackson.annotation.JsonTypeInfo;\r
+\r
+import java.io.Serializable;\r
+\r
+@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")\r
+public class ParameterDTO implements Serializable {\r
+\r
+ private static final long serialVersionUID = 1460021542834472410L;\r
+\r
+ private String paramName;\r
+ private String paramValue;\r
+ private String dataType;\r
+ private boolean isProcessed;\r
+\r
+ public ParameterDTO() {\r
+\r
+ }\r
+\r
+ public ParameterDTO(String paramName, String paramValue) {\r
+ super();\r
+ this.paramName = paramName;\r
+ this.paramValue = paramValue;\r
+ }\r
+\r
+ public ParameterDTO(String paramName, String paramValue, String dataType) {\r
+ super();\r
+ this.paramName = paramName;\r
+ this.paramValue = paramValue;\r
+ this.dataType = dataType;\r
+ }\r
+\r
+ public String getParamName() {\r
+ return paramName;\r
+ }\r
+\r
+ public void setParamName(String paramName) {\r
+ this.paramName = paramName;\r
+ }\r
+\r
+ public String getParamValue() {\r
+ return paramValue;\r
+ }\r
+\r
+ public void setParamValue(String paramValue) {\r
+ this.paramValue = paramValue;\r
+ }\r
+\r
+ public String getDataType() {\r
+ return dataType;\r
+ }\r
+\r
+ public void setDataType(String dataType) {\r
+ this.dataType = dataType;\r
+ }\r
+\r
+ public boolean isProcessed() {\r
+ return isProcessed;\r
+ }\r
+\r
+ public void setProcessed(boolean isProcessed) {\r
+ this.isProcessed = isProcessed;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return "ParameterDTO [paramName=" + paramName + ", paramValue=" + paramValue + ", dataType="\r
+ + dataType + "]";\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object obj) {\r
+ if (this == obj)\r
+ return true;\r
+ if (obj == null)\r
+ return false;\r
+ if (getClass() != obj.getClass())\r
+ return false;\r
+ final ParameterDTO other = (ParameterDTO) obj;\r
+ if (paramName == null) {\r
+ if (other.paramName != null)\r
+ return false;\r
+ } else if (!paramName.equals(other.paramName)) {\r
+ return false;\r
+ }\r
+ if (paramValue == null) {\r
+ if (other.paramValue != null)\r
+ return false;\r
+ } else if (!paramValue.equals(other.paramValue)) {\r
+ return false;\r
+ }\r
+ if (dataType == null) {\r
+ if (other.dataType != null)\r
+ return false;\r
+ } else if (!dataType.equals(other.dataType)) {\r
+ return false;\r
+ }\r
+ return true;\r
+ }\r
+\r
+ @Override\r
+ public int hashCode() {\r
+ final int prime = 31;\r
+ int result = 1;\r
+ result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());\r
+ result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());\r
+ result = prime * result + ((dataType == null) ? 0 : dataType.hashCode());\r
+ return result;\r
+ }\r
+\r
+}\r