Example usage for org.apache.commons.lang.builder ToStringBuilder append

List of usage examples for org.apache.commons.lang.builder ToStringBuilder append

Introduction

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

Prototype

public ToStringBuilder append(String fieldName, short[] array) 

Source Link

Document

Append to the toString a short array.

Usage

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.VocabularyPE.java

@Override
public final String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this,
            ModifiedShortPrefixToStringStyle.MODIFIED_SHORT_PREFIX_STYLE);
    builder.append("simpleCode", getSimpleCode());
    builder.append("internalNamespace", isInternalNamespace());
    builder.append("managedInternally", isManagedInternally());
    return builder.toString();
}

From source file:com.funambol.ctp.server.config.CTPServerConfigBean.java

/**
 * Returns a string representation of the object.
 * @return a string representation of the object.
 *///from  w  ww  .j ava  2s.  c  om
public String toString() {
    ToStringBuilder sb = new ToStringBuilder(this);
    sb.append("portNumber", portNumber);
    sb.append("clientHeartBeatExpectedTime", clientHeartBeatExpectedTime);
    sb.append("connectionAcceptorThreadPoolSize", connectionAcceptorThreadPoolSize);
    sb.append("clusterConfiguration", clusterConfiguration);
    sb.append("notificationGroupConfigFileName", notificationGroupConfigFileName);
    sb.append("notificationGroupName", notificationGroupName);
    sb.append("loggingFilterEnabled", loggingFilterEnabled);
    sb.append("receiveBufferSize", receiveBufferSize);
    sb.append("minaIdleTime", minaIdleTime);
    sb.append("WSServerInformation", wsServerInformation);
    sb.append("authenticationManager", authenticationManager);
    sb.append("maxConnections", maxConnections);
    return sb.toString();
}

From source file:cx.ath.jbzdak.linux.serial.jna.bindings.config.TermiosConfig.java

public String toStringDecomposeFlags() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this).append("c_iflag", c_iflag)
            .append("c_oflag", c_oflag).append("c_cflag", c_cflag).append("c_lflag", c_lflag)
            .append("c_line", c_line).append("c_cc", c_cc).append("c_ispeed", c_ispeed)
            .append("c_ospeed", c_ospeed);

    toStringBuilder.append("c_iflag_decomposed", InputFlag.FAKE_ENUM.decomposite(c_iflag));
    toStringBuilder.append("c_oflag_decomposed", OutputFlag.FAKE_ENUM.decomposite(c_oflag));
    toStringBuilder.append("c_cflag_decomposed", ConfigFlag.FAKE_ENUM.decomposite(c_cflag));
    toStringBuilder.append("c_cllag_decomposed", LineFlag.FAKE_ENUM.decomposite(c_oflag));

    return toStringBuilder.toString();

}

From source file:com.funambol.foundation.synclet.BeanShellSynclet.java

public String toString() {
    ToStringBuilder sb = new ToStringBuilder(this);

    sb.append("script", script).append("header", header).append("pattern", pattern);

    return sb.toString();
}

From source file:eu.datex2.schema._2_0rc2._2_0.D2LogicalModel.java

/**
 * To string.//from   ww w. j a  va  2  s . c  o  m
 *
 * @param toStringBuilder the to string builder
 */
public final void toString(final ToStringBuilder toStringBuilder) {
    Exchange theExchange;
    theExchange = this.getExchange();
    toStringBuilder.append("exchange", theExchange);
    PayloadPublication thePayloadPublication;
    thePayloadPublication = this.getPayloadPublication();
    toStringBuilder.append("payloadPublication", thePayloadPublication);
    ExtensionType theD2LogicalModelExtension;
    theD2LogicalModelExtension = this.getD2LogicalModelExtension();
    toStringBuilder.append("d2LogicalModelExtension", theD2LogicalModelExtension);
    String theModelBaseVersion;
    theModelBaseVersion = this.getModelBaseVersion();
    toStringBuilder.append("modelBaseVersion", theModelBaseVersion);
    String theExtensionName;
    theExtensionName = this.getExtensionName();
    toStringBuilder.append("extensionName", theExtensionName);
    String theExtensionVersion;
    theExtensionVersion = this.getExtensionVersion();
    toStringBuilder.append("extensionVersion", theExtensionVersion);
}

From source file:eu.datex2.schema._2_0rc2._2_0.OpenlrLineLocationReference.java

/**
 * To string./*from   w  w w . j a  v  a  2s .co  m*/
 *
 * @param toStringBuilder the to string builder
 */
public final void toString(final ToStringBuilder toStringBuilder) {
    List<OpenlrLocationReferencePoint> theOpenlrLocationReferencePoint;
    theOpenlrLocationReferencePoint = this.getOpenlrLocationReferencePoint();
    toStringBuilder.append("openlrLocationReferencePoint", theOpenlrLocationReferencePoint);
    OpenlrLastLocationReferencePoint theOpenlrLastLocationReferencePoint;
    theOpenlrLastLocationReferencePoint = this.getOpenlrLastLocationReferencePoint();
    toStringBuilder.append("openlrLastLocationReferencePoint", theOpenlrLastLocationReferencePoint);
    OpenlrOffsets theOpenlrOffsets;
    theOpenlrOffsets = this.getOpenlrOffsets();
    toStringBuilder.append("openlrOffsets", theOpenlrOffsets);
    ExtensionType theOpenlrLineLocationReferenceExtension;
    theOpenlrLineLocationReferenceExtension = this.getOpenlrLineLocationReferenceExtension();
    toStringBuilder.append("openlrLineLocationReferenceExtension", theOpenlrLineLocationReferenceExtension);
}

From source file:com.redhat.rhn.manager.configuration.file.ConfigFileData.java

/**
 * {@inheritDoc}/* w  ww .j a v a  2s  .c om*/
 */
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("Path", getPath()).append("Owner", getOwner()).append("Group", getGroup())
            .append("Permissions", getPermissions()).append("SELinux Context", getSelinuxCtx())
            .append("Type", getType()).append("Macro Start", getMacroStart()).append("Macro End", getMacroEnd())
            .append("isBinary", isBinary()).append("Size:", getContentSize());
    return builder.toString();
}

From source file:edu.utah.further.mdr.data.common.domain.asset.AbstractAssetEntity.java

/**
 * @see java.lang.Object#toString()//from  w  w w  . j a  va 2 s. co m
 */
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this, SHORT_WITH_SPACES_STYLE).append("id", id);
    if (getNamespace() != null) {
        builder.append("namespace", getNamespace());
    }
    if (getType() != null) {
        builder.append("type", getType());
    }
    builder.append("label", label).append("description", description);
    return builder.toString();
}

From source file:de.iteratec.iteraplan.model.attribute.BBAttribute.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    builder.append("name", name);
    builder.append("type", type);

    return builder.toString();
}

From source file:eu.datex2.schema._2_0rc2._2_0.OpenlrBasePointLocation.java

/**
 * To string./*  w  ww  . j a  v  a 2  s.  com*/
 *
 * @param toStringBuilder the to string builder
 */
public void toString(final ToStringBuilder toStringBuilder) {
    OpenlrSideOfRoadEnum theOpenlrSideOfRoad;
    theOpenlrSideOfRoad = this.getOpenlrSideOfRoad();
    toStringBuilder.append("openlrSideOfRoad", theOpenlrSideOfRoad);
    OpenlrOrientationEnum theOpenlrOrientation;
    theOpenlrOrientation = this.getOpenlrOrientation();
    toStringBuilder.append("openlrOrientation", theOpenlrOrientation);
    BigInteger theOpenlrPositiveOffset;
    theOpenlrPositiveOffset = this.getOpenlrPositiveOffset();
    toStringBuilder.append("openlrPositiveOffset", theOpenlrPositiveOffset);
    OpenlrLocationReferencePoint theOpenlrLocationReferencePoint;
    theOpenlrLocationReferencePoint = this.getOpenlrLocationReferencePoint();
    toStringBuilder.append("openlrLocationReferencePoint", theOpenlrLocationReferencePoint);
    OpenlrLastLocationReferencePoint theOpenlrLastLocationReferencePoint;
    theOpenlrLastLocationReferencePoint = this.getOpenlrLastLocationReferencePoint();
    toStringBuilder.append("openlrLastLocationReferencePoint", theOpenlrLastLocationReferencePoint);
    ExtensionType theOpenlrBasePointLocationExtension;
    theOpenlrBasePointLocationExtension = this.getOpenlrBasePointLocationExtension();
    toStringBuilder.append("openlrBasePointLocationExtension", theOpenlrBasePointLocationExtension);
}