Search in sources :

Example 26 with ToStringBuilder

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();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 27 with ToStringBuilder

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();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 28 with ToStringBuilder

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();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 29 with ToStringBuilder

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();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 30 with ToStringBuilder

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();
}
Also used : Forecast(org.openhab.binding.weather.internal.annotation.Forecast) ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Aggregations

ToStringBuilder (org.apache.commons.lang.builder.ToStringBuilder)73 DataMap (com.linkedin.data.DataMap)1 ProtocolVersion (com.linkedin.restli.common.ProtocolVersion)1 PropertyChangeEvent (java.beans.PropertyChangeEvent)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 InetAddress (java.net.InetAddress)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Arrays (java.util.Arrays)1 Collection (java.util.Collection)1 Collections (java.util.Collections)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Map (java.util.Map)1 Properties (java.util.Properties)1 Set (java.util.Set)1 TimeZone (java.util.TimeZone)1 Collectors (java.util.stream.Collectors)1 Level (org.apache.logging.log4j.Level)1