2 * Copyright 2017-2018 Gregory Moyer and contributors.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openhab.binding.lametrictime.api.local.model;
18 public class StringParameter extends Parameter
20 private String format;
24 public StringParameter withName(String name)
31 public StringParameter withRequired(Boolean required)
33 super.withRequired(required);
37 public String getFormat()
42 public void setFormat(String format)
47 public StringParameter withFormat(String format)
53 public String getValue()
58 public void setValue(String value)
63 public StringParameter withValue(String value)
70 public String toString()
72 StringBuilder builder = new StringBuilder();
73 builder.append("StringParameter [format=");
74 builder.append(format);
75 builder.append(", value=");
76 builder.append(value);
77 builder.append(", getName()=");
78 builder.append(getName());
79 builder.append(", getRequired()=");
80 builder.append(getRequired());
82 return builder.toString();