use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.
the class Structure method toString.
@Override
public String toString() {
final ToStringBuilder builder = createToStringBuilder();
builder.appendSuper(super.toString());
builder.append("structure_id", this.structure_id);
builder.append("thermostats", this.thermostat_id_list);
builder.append("smoke_co_alarms", this.smoke_co_alarm_id_list);
builder.append("cameras", this.camera_id_list);
builder.append("away", this.away);
builder.append("name", this.name);
builder.append("country_code", this.country_code);
builder.append("postal_code", this.postal_code);
builder.append("peak_period_start_time", this.peak_period_start_time);
builder.append("peak_period_end_time", this.peak_period_end_time);
builder.append("time_zone", this.time_zone);
builder.append("eta", this.eta);
builder.append("eta_begin", this.eta_begin);
builder.append("rhr_enrollment", this.rhr_enrollment);
builder.append("co_alarm_state", this.co_alarm_state);
builder.append("smoke_alarm_state", this.smoke_alarm_state);
return builder.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.
the class Thermostat method toString.
@Override
public String toString() {
final ToStringBuilder builder = createToStringBuilder();
builder.appendSuper(super.toString());
builder.append("can_cool", this.can_cool);
builder.append("can_heat", this.can_heat);
builder.append("is_using_emergency_heat", this.is_using_emergency_heat);
builder.append("has_fan", this.has_fan);
builder.append("fan_timer_active", this.fan_timer_active);
builder.append("fan_timer_timeout", this.fan_timer_timeout);
builder.append("has_leaf", this.has_leaf);
builder.append("temperature_scale", this.temperature_scale);
builder.append("target_temperature_f", this.target_temperature_f);
builder.append("target_temperature_c", this.target_temperature_c);
builder.append("target_temperature_high_f", this.target_temperature_high_f);
builder.append("target_temperature_high_c", this.target_temperature_high_c);
builder.append("target_temperature_low_f", this.target_temperature_low_f);
builder.append("target_temperature_low_c", this.target_temperature_low_c);
builder.append("eco_temperature_high_f", this.eco_temperature_high_f);
builder.append("eco_temperature_high_c", this.eco_temperature_high_c);
builder.append("eco_temperature_low_f", this.eco_temperature_low_f);
builder.append("eco_temperature_low_c", this.eco_temperature_low_c);
builder.append("away_temperature_high_f", this.away_temperature_high_f);
builder.append("away_temperature_high_c", this.away_temperature_high_c);
builder.append("away_temperature_low_f", this.away_temperature_low_f);
builder.append("away_temperature_low_c", this.away_temperature_low_c);
builder.append("hvac_mode", this.hvac_mode);
builder.append("ambient_temperature_f", this.ambient_temperature_f);
builder.append("ambient_temperature_c", this.ambient_temperature_c);
builder.append("humidity", this.humidity);
builder.append("hvac_state", this.hvac_state);
builder.append("is_locked", this.is_locked);
builder.append("locked_temp_min_f", this.locked_temp_min_f);
builder.append("locked_temp_max_f", this.locked_temp_max_f);
builder.append("locked_temp_min_c", this.locked_temp_min_c);
builder.append("locked_temp_max_c", this.locked_temp_max_c);
builder.append("label", this.label);
builder.append("sunlight_correction_enabled", this.sunlight_correction_enabled);
builder.append("sunlight_correction_active", this.sunlight_correction_active);
builder.append("fan_timer_duration", this.fan_timer_duration);
builder.append("time_to_target", this.time_to_target);
builder.append("time_to_target_training", this.time_to_target_training);
builder.append("previous_hvac_mode", this.previous_hvac_mode);
return builder.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.
the class UpdateDataModelRequest method toString.
@Override
public String toString() {
final ToStringBuilder builder = createToStringBuilder();
builder.appendSuper(super.toString());
builder.append("accessToken", this.accessToken);
if (this.dataModel != null) {
builder.append("dataModel", this.dataModel);
}
return builder.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.
the class WeatherBindingConfig method toString.
/**
* {@inheritDoc}
*/
@Override
public String toString() {
ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
tsb.append("locationId", locationId).append("type", type).append("property", property);
if (roundingMode != null) {
tsb.append("roundingMode", roundingMode).append("scale", scale);
}
if (unit != null) {
tsb.append("unit", unit.toString());
}
return tsb.toString();
}
use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.
the class Weather method toString.
/**
* {@inheritDoc}
*/
@Override
public String toString() {
ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
if (this instanceof org.openhab.binding.weather.internal.model.Forecast) {
tsb.append("day", ((org.openhab.binding.weather.internal.model.Forecast) this).getDay());
}
tsb.append(temperature).append(atmosphere).append(clouds).append(condition).append(precipitation).append(wind).append(station).append(error);
return tsb.toString();
}
Aggregations