import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
/**
* The {@link ApiConfiguration} defines the model for an API bridge configuration.
*
@Override
public String toString() {
- return new ToStringBuilder(this).append(API_CONFIG_API_KEY, this.getApiKey())
- .append(API_CONFIG_API_SERVER, this.getApiServer()).toString();
+ return getClass().getSimpleName() + "{ " + API_CONFIG_API_KEY + "=" + this.getApiKey() + ", "
+ + API_CONFIG_API_SERVER + "=" + this.getApiServer() + "}";
}
}
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.CHANNEL_CONFIG_OFFSET;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
/**
* The {@link ChannelConfig} defines the model for a channel configuration.
*
@Override
public String toString() {
- return new ToStringBuilder(this).append(CHANNEL_CONFIG_OFFSET, this.getOffset()).toString();
+ return getClass().getSimpleName() + "{ " + CHANNEL_CONFIG_OFFSET + "=" + this.getOffset() + "}";
}
}
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.ROUTE_CONFIG_ROUTE_ID;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
/**
* The {@link RouteConfiguration} defines the model for a route stop configuration.
*
@Override
public String toString() {
- return new ToStringBuilder(this).append(ROUTE_CONFIG_ROUTE_ID, this.getRouteId()).toString();
+ return getClass().getSimpleName() + "{ " + ROUTE_CONFIG_ROUTE_ID + "=" + this.getRouteId() + "}";
}
}
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
/**
* The {@link StopConfiguration} defines the model for a stop bridge configuration.
*
@Override
public String toString() {
- return new ToStringBuilder(this).append(STOP_CONFIG_INTERVAL, this.getInterval())
- .append(STOP_CONFIG_ID, this.getStopId()).toString();
+ return getClass().getSimpleName() + "{ " + STOP_CONFIG_INTERVAL + "=" + this.getInterval() + ", "
+ + STOP_CONFIG_ID + "=" + this.getStopId() + "}";
}
}