]> git.basschouten.com Git - openhab-addons.git/blob
1d7ee188212c832e56390a5d4cd367acf2d19901
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.onebusaway.internal.config;
14
15 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.ROUTE_CONFIG_ROUTE_ID;
16
17 /**
18  * The {@link RouteConfiguration} defines the model for a route stop configuration.
19  *
20  * @author Shawn Wilsher - Initial contribution
21  */
22 public class RouteConfiguration {
23
24     private String routeId;
25
26     /**
27      * @return the route ID.
28      */
29     public String getRouteId() {
30         return routeId;
31     }
32
33     /**
34      * Sets the route ID.
35      */
36     public void setRouteId(String routeId) {
37         this.routeId = routeId;
38     }
39
40     @Override
41     public String toString() {
42         return getClass().getSimpleName() + "{ " + ROUTE_CONFIG_ROUTE_ID + "=" + this.getRouteId() + "}";
43     }
44 }