Search in sources :

Example 76 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project opennms by OpenNMS.

the class AbstractReportInstance method toString.

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("name", getName());
    tsb.append("description", getDescription());
    tsb.append("retainInterval", getRetainInterval());
    return tsb.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 77 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project iaf by ibissource.

the class DirectoryListener method toString.

public String toString() {
    String result = super.toString();
    ToStringBuilder ts = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    ts.append("name", getName());
    ts.append("inputDirectory", getInputDirectory());
    ts.append("wildcard", getWildcard());
    ts.append("excludeWildcard", getExcludeWildcard());
    result += ts.toString();
    return result;
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 78 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project iaf by ibissource.

the class ReceiverBase method toString.

/**
 *  Returns a toString of this class by introspection and the toString() value of its listener.
 *
 * @return    Description of the Return Value
 */
public String toString() {
    String result = super.toString();
    ToStringBuilder ts = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    ts.append("name", getName());
    result += ts.toString();
    result += " listener [" + (listener == null ? "-none-" : listener.toString()) + "]";
    return result;
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 79 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.

the class MeasurementRequest method toString.

@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("accessToken", this.accessToken);
    builder.append("deviceId", this.deviceId);
    if (this.moduleId != null) {
        builder.append("moduleId", this.moduleId);
    }
    builder.append("measures", this.measures);
    return builder.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 80 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.

the class MeasurementResponse method toString.

@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("status", this.status);
    builder.append("body", this.body);
    return builder.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Aggregations

ToStringBuilder (org.apache.commons.lang.builder.ToStringBuilder)113 SimpleDateFormat (java.text.SimpleDateFormat)2 TimeZone (java.util.TimeZone)2 DataMap (com.linkedin.data.DataMap)1 ProtocolVersion (com.linkedin.restli.common.ProtocolVersion)1 PropertyChangeEvent (java.beans.PropertyChangeEvent)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 AccessibleObject (java.lang.reflect.AccessibleObject)1 InetAddress (java.net.InetAddress)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 Collectors (java.util.stream.Collectors)1