2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
16 * Pojo for stringparameter.
18 * @author Gregory Moyer - Initial contribution
20 public class StringParameter extends Parameter {
21 private String format;
25 public StringParameter withName(String name) {
31 public StringParameter withRequired(Boolean required) {
32 super.withRequired(required);
36 public String getFormat() {
40 public void setFormat(String format) {
44 public StringParameter withFormat(String format) {
49 public String getValue() {
53 public void setValue(String value) {
57 public StringParameter withValue(String value) {
63 public String toString() {
64 StringBuilder builder = new StringBuilder();
65 builder.append("StringParameter [format=");
66 builder.append(format);
67 builder.append(", value=");
68 builder.append(value);
69 builder.append(", getName()=");
70 builder.append(getName());
71 builder.append(", getRequired()=");
72 builder.append(getRequired());
74 return builder.toString();