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

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

Introduction

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

Prototype

ToStringStyle DEFAULT_STYLE

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

Click Source Link

Document

The default toString style.

Usage

From source file:com.photon.phresco.service.model.ArtifactInfo.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(super.toString())
            .append("groupId", groupId).append("artifact", artifact).append("classifier", classifier)
            .append("pack", pack).append("version", version).append("pomFile", pomFile).toString();
}

From source file:jp.co.opentone.bsol.linkbinder.dto.AbstractDto.java

@Override
public String toString() {
    // ????????//from  w  w  w  .j a va 2 s .  c o  m
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE);
    try {
        for (Field field : getFields(this.getClass())) {
            if (isToStringIgnoreField(field.getName())) {
                continue;
            }
            // ???ON????
            field.setAccessible(true);
            tsb.append(field.getName(), field.get(this));
        }
    } catch (IllegalArgumentException e) {
        log.warn(e.getMessage(), e);
    } catch (IllegalAccessException e) {
        log.warn(e.getMessage(), e);
    }

    // ?????????????
    // Object?ID???
    return removeObjectId(tsb.toString());
}

From source file:com.parleys.server.dto.AbstractDTO.java

@Override
public String toString() {
    ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("id", this.id);
    return sb.toString();
}

From source file:com.photon.phresco.commons.model.DownloadInfo.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(super.toString())
            .append("appliesToTechs", getAppliesToTechIds()).append("platformTypeIds", getPlatformTypeIds())
            .toString();/*  ww w  .ja  va2s . c o  m*/
}

From source file:com.beingjavaguys.polymorphism.CardPayment.java

@Override
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE);
    toStringBuilder.append("paymentId", paymentId);
    toStringBuilder.append("paymentAmount", paymentAmount);
    toStringBuilder.append("paymentCurrency", paymentCurrency);
    toStringBuilder.append("payingAccountNumber", payingAccountNumber);
    toStringBuilder.append("transferringBankName", transferringBankName);
    return toStringBuilder.toString();
}

From source file:com.photon.phresco.framework.commons.ParameterModel.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(super.toString())
            .append("value", getValue()).append("onClickFunction", getOnClickFunction())
            .append("onChangeFunction", getOnChangeFunction()).append("selectedValues", getSelectedValues())
            .append("multiple", isMultiple()).append("show", isShow()).append("dependency", getDependency())
            .toString();/* w ww .j  a va2 s.  c om*/
}

From source file:com.photon.phresco.commons.model.TechnologyInfo.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("appTypeId", getAppTypeId())
            .append("techVersion", getVersion()).append("id", getId()).append("techGroupId", getTechGroupId())
            .append("techVersions", getTechVersions()).append("multiModule", isMultiModule()).toString();
}

From source file:io.reign.coord.ZkLockWatcher.java

@Override
public void process(WatchedEvent event) {
    // log if DEBUG
    if (logger.isDebugEnabled()) {
        logger.debug("***** Received ZooKeeper Event:  {}",
                ReflectionToStringBuilder.toString(event, ToStringStyle.DEFAULT_STYLE));

    }//w  ww.j av  a  2s .  c o  m

    // process events
    switch (event.getType()) {
    case NodeCreated:
    case NodeChildrenChanged:
    case NodeDataChanged:
    case NodeDeleted:
        synchronized (this) {
            this.notifyAll();

            if (logger.isDebugEnabled()) {
                logger.debug("Notifying threads waiting on LockWatcher:  lockWatcher.hashcode()="
                        + this.hashCode() + "; instancesOutstanding=" + instancesOutstanding.get()
                        + "; lockName=" + lockPath + "; lockReservation=" + lockReservationPath);
            }
        }
        break;

    case None:
        Event.KeeperState eventState = event.getState();
        if (eventState == Event.KeeperState.SyncConnected) {
            // connection event: check children
            synchronized (this) {
                this.notifyAll();
            }

        } else if (eventState == Event.KeeperState.Disconnected || eventState == Event.KeeperState.Expired) {
            // disconnected: notifyAll so we can check children again on
            // reconnection
            synchronized (this) {
                this.notifyAll();
            }

        } else {
            logger.warn("Unhandled event state:  "
                    + ReflectionToStringBuilder.toString(event, ToStringStyle.DEFAULT_STYLE));
        }
        break;

    default:
        logger.warn("Unhandled event type:  "
                + ReflectionToStringBuilder.toString(event, ToStringStyle.DEFAULT_STYLE));
    }

    // }// if

}

From source file:com.photon.phresco.framework.model.TestResultInfo.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("sample", getSample())
            .append("average", getAverage()).append("min", getMin()).append("max", getMax())
            .append("stdDev", getStdDev()).append("error", getError()).append("throughput", getThroughput())
            .append("kb", getKb()).append("avgBytes", getAvgBytes()).toString();
}

From source file:com.photon.phresco.commons.model.SelectedFeature.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(super.toString())
            .append("name", getName()).append("dispName", getDispName()).append("dispValue", getDispValue())
            .append("versionID", getVersionID()).append("type", getType())
            .append("artifactGroupId", getArtifactGroupId()).append("moduleId", getModuleId())
            .append("canConfigure", isCanConfigure()).append("defaultModule", isDefaultModule()).toString();
}