Example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Prototype

ToStringStyle SHORT_PREFIX_STYLE

To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Click Source Link

Document

The short prefix toString style.

Usage

From source file:com.mgmtp.jfunk.data.generator.data.FormEntry.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("formDataKey", formDataKey);
    tsb.append("key", key);
    tsb.append("fixedValue", fixedValue);
    tsb.append("currentValue", currentValue);
    return tsb.toString();
}

From source file:de.kaiserpfalzEdv.office.core.license.impl.LicenseServiceImpl.java

@Override
public String toString() {
    if (rawLicense != null) {
        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("license", license).build();
    }/*  w  w w.  j a v a 2s  .c o  m*/

    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("licenseFile", licenseFile)
            .build();
}

From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString.java

@Override
public String toString() {
    ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    b.append("paramName", getParamName());
    b.append("resourceId", getResource().getId()); // TODO: add a field so we don't need to resolve this
    b.append("value", getValueNormalized());
    return b.build();
}

From source file:com.jk.util.JKObjectUtil.java

/**
 * To string./* w  ww. ja va2  s. c  o m*/
 *
 * @param object
 *            the object
 * @param useCurrentTostringIfAvailable
 *            the use current tostring if available
 * @return the string
 */
public static String toString(final Object object, boolean useCurrentTostringIfAvailable) {
    if (object == null) {
        return "[NULL]";
    }
    if (useCurrentTostringIfAvailable && isMethodDirectlyExists(object, "toString")) {
        return object.toString();
    }
    return ToStringBuilder.reflectionToString(object, ToStringStyle.SHORT_PREFIX_STYLE);
}

From source file:com.norconex.committer.core.AbstractBatchCommitter.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    builder.appendSuper(super.toString());
    builder.append("commitBatchSize", commitBatchSize);
    builder.append("maxRetries", maxRetries);
    builder.append("maxRetryWait", maxRetryWait);
    builder.append("operations", operations);
    return builder.toString();
}

From source file:at.ac.tuwien.infosys.jcloudscale.datastore.core.DatastoreImpl.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name).append("host", host)
            .append("port", port).append("dataUnit", dataUnit).toString();
}

From source file:com.norconex.collector.http.url.impl.GenericCanonicalLinkDetector.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("contentTypes", contentTypes)
            .toString();/* w  w  w .  j a  va2s. c  o m*/
}

From source file:com.mgmtp.jfunk.data.generator.constraint.base.BaseConstraint.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("id", id);
    tsb.append("lastIdInHierarchy", lastIdInHierarchy);
    tsb.append("fixedValue", valueCallback == null ? null : valueCallback.getImmutableValue());
    return tsb.toString();
}

From source file:com.github.koraktor.steamcondenser.community.GameStats.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("achievementsDone", this.getAchievementsDone())
            .append("achievements", this.getAchievements().size()).append("game", this.game)
            .append("hoursPlayed", this.hoursPlayed).append("privacyState", this.privacyState)
            .append("user", this.user).toString();
}

From source file:com.mgmtp.perfload.core.client.web.response.ResponseInfo.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("uri", uri);
    tsb.append("methodType", methodType);
    tsb.append("statusCode", statusCode);
    tsb.append("timeIntervalBeforeBody", timeIntervalBeforeBody);
    tsb.append("timeIntervalTotal", timeIntervalTotal);
    tsb.append("headers", headers);
    tsb.append("charset", charset);
    tsb.append("extraInfo", extraInfo);
    tsb.append("executionId", executionId);
    tsb.append("detailExtractionNames", detailExtractionNames);
    if (body != null) {
        tsb.append("body", bodyAsString);
    }//from  ww w  . j av a 2 s  .  co  m
    // We don't want line breaks in the result
    return LINE_BREAK_PATTERN.matcher(tsb.toString()).replaceAll(" ");
}