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

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

Introduction

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

Prototype

ToStringStyle SHORT_PREFIX_STYLE

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

Click Source Link

Document

The short prefix toString style.

Usage

From source file:edu.internet2.middleware.psp.PspOptions.java

/**
 * {@inheritDoc}// w w  w.  java 2s . co m
 */
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("args", args);
    toStringBuilder.append("confDir", confDir);
    toStringBuilder.append("interval", interval);
    toStringBuilder.append("iterations", iterations);
    toStringBuilder.append("logSpml", logSpml);
    toStringBuilder.append("outputFile", outputFile);
    toStringBuilder.append("printRequests", printRequests);
    return toStringBuilder.toString();
}

From source file:io.pcp.parfait.dxm.PcpMmvWriter.java

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

From source file:edu.internet2.middleware.changelogconsumer.googleapps.GoogleAppsChangeLogConsumer.java

/**
 * Gets a simple string representation of the change log entry.
 *
 * @param changeLogEntry the change log entry
 * @return the simple string representation of the change log entry
 *///from w w w  . j a v a 2 s .com
private static String toString(ChangeLogEntry changeLogEntry) {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(changeLogEntry,
            ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("timestamp", changeLogEntry.getCreatedOn())
            .append("sequence", changeLogEntry.getSequenceNumber())
            .append("category", changeLogEntry.getChangeLogType().getChangeLogCategory())
            .append("actionName", changeLogEntry.getChangeLogType().getActionName())
            .append("contextId", changeLogEntry.getContextId());
    return toStringBuilder.toString();
}

From source file:edu.internet2.middleware.changelogconsumer.googleapps.GoogleAppsChangeLogConsumer.java

/**
 * Gets a deep string representation of the change log entry.
 *
 * @param changeLogEntry the change log entry
 * @return the deep string representation of the change log entry
 *//*from   w w w  .j  a  v a  2 s  . co m*/
private static String toStringDeep(ChangeLogEntry changeLogEntry) {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(changeLogEntry,
            ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("timestamp", changeLogEntry.getCreatedOn())
            .append("sequence", changeLogEntry.getSequenceNumber())
            .append("category", changeLogEntry.getChangeLogType().getChangeLogCategory())
            .append("actionName", changeLogEntry.getChangeLogType().getActionName())
            .append("contextId", changeLogEntry.getContextId());

    final ChangeLogType changeLogType = changeLogEntry.getChangeLogType();

    for (String label : changeLogType.labels()) {
        toStringBuilder.append(label, changeLogEntry.retrieveValueForLabel(label));
    }

    return toStringBuilder.toString();
}

From source file:com.otterca.common.crypto.X509CertificateBuilderImpl.java

/**
 * @see java.lang.Object#toString()//w w w  .  ja v  a  2 s .  co m
 */
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    DateFormat df = new SimpleDateFormat("yyyyMMdd'T'HHmmss");

    builder.append("serialNumber", serialNumber);
    builder.append("subject", quote(subjectDN));
    builder.append("issuer", (issuer == null) ? quote(issuerDN) : quote(issuer.getSubjectDN()));
    builder.append("notBefore", (notBefore == null) ? notBefore : df.format(notBefore));
    builder.append("notAfter", (notAfter == null) ? notAfter : df.format(notAfter));

    if (!subjectNames.isEmpty()) {
        builder.append("altSubjectNames", quote(Arrays.toString(subjectNames.toArray(emptyGeneralNameArray))));
    }

    if (!issuerNames.isEmpty()) {
        builder.append("altIssuerNames", quote(Arrays.toString(issuerNames.toArray(emptyGeneralNameArray))));
    }

    return builder.toString();
}

From source file:com.datatorrent.stram.plan.logical.LogicalPlan.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("operators", this.operators)
            .append("streams", this.streams).append("properties", this.attributes).toString();
}

From source file:nl.surfnet.coin.api.client.domain.AbstractEntry.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("startIndex", startIndex)
            .append("totalResults", totalResults).append("itemsPerPage", itemsPerPage)
            .append("filtered", filtered).append("updatedSince", updatedSince).append("sorted", sorted)
            .toString();/*from   ww w. j a v a 2s  .co  m*/
}

From source file:nl.surfnet.coin.api.client.domain.Group20.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(id).append(title).toString();
}

From source file:nl.surfnet.coin.api.client.domain.Group20Entry.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString())
            .append(entry).toString();/*from  w  ww  .jav  a2 s .  c o  m*/
}

From source file:nl.surfnet.coin.api.client.domain.Person.java

@Override
public String toString() {
    return new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();
}