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:info.magnolia.cms.util.UrlPatternDelegate.java

/**
 * {@inheritDoc}/*ww  w.j  a  v a  2s .  c om*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("url", this.url)
            .append("host", this.host).toString();
}

From source file:jp.primecloud.auto.zabbix.client.ItemClientTest.java

@Test
@Ignore/*from   ww w  . ja v a 2 s  .  c  o m*/
public void testGetFromItemid() {
    ItemGetParam param = new ItemGetParam();
    List<String> itemids = new ArrayList<String>();
    itemids.add("83062");

    List<String> hostids = new ArrayList<String>();
    hostids.add("11367");

    //   param.setItemids(itemids);
    param.setHostids(hostids);
    param.setOutput("extend");
    List<Item> items = client.item().get(param);
    log.debug("itemSize: " + items.size());
    for (Item item : items) {
        log.debug(ReflectionToStringBuilder.toString(item, ToStringStyle.SHORT_PREFIX_STYLE));
    }
}

From source file:com.datatorrent.stram.engine.RecoverableInputOperator.java

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

From source file:io.github.davejoyce.dao.composite.model.AppTweet.java

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

From source file:io.horizondb.model.schema.BlockPosition.java

/**
 * {@inheritDoc}//  www  .  j  a v  a2  s. com
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("offset", this.offset)
            .append("length", this.length).toString();
}

From source file:acromusashi.stream.bolt.hdfs.HdfsStoreConfig.java

/**
 * {@inheritDoc}//from   w  ww.  ja  v  a2  s  . c  o  m
 */
@Override
public String toString() {
    String result = ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    return result;
}

From source file:de.iteratec.iteraplan.businesslogic.exchange.legacyExcel.importer.NumberAttData.java

/**
 * {@inheritDoc}//from  www  .  j av a2s  .  c  om
 */
@Override
public String toString() {
    ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("name", getName().getAttributeValue());
    toStringBuilder.append("oldName", getOldName().getAttributeValue());
    toStringBuilder.append("description", getDescription().getAttributeValue());
    toStringBuilder.append("groupName", getGroupName().getAttributeValue());
    toStringBuilder.append("mandatory", getMandatory().getAttributeValue());
    toStringBuilder.append("active", getActive().getAttributeValue());
    toStringBuilder.append("lowerBound", getLowerBound().getAttributeValue());
    toStringBuilder.append("upperBound", getUpperBound().getAttributeValue());
    toStringBuilder.append("unit", getUnit().getAttributeValue());
    toStringBuilder.append("uniform", getUniform().getAttributeValue());
    toStringBuilder.append("userRanges", getUserRanges().getAttributeValue());
    return toStringBuilder.toString();
}

From source file:eionet.meta.dao.domain.VocabularyConcept.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id)
            .append("identifier", identifier).append("label", label).append("definition", definition)
            .append("notation", notation).toString();
}

From source file:com.iggroup.oss.restdoclet.plugin.io.DirectoryBuilder.java

/**
 * {@inheritDoc}/*from   ww w  .  j a v a2 s . c  o  m*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("targetDirectory", targetDirectory).toString();
}

From source file:jp.primecloud.auto.common.component.DnsStrategy.java

/**
 * TODO: /*  w  w  w  . ja  v  a  2  s  .  co m*/
 *
 * @param fqdn
 * @param ipAddress
 */
public void addReverse(String fqdn, String ipAddress) {
    List<String> commands = createCommands();

    List<String> stdins = createStdinsCommon();
    stdins.addAll(createAddReverse(fqdn, ipAddress));
    stdins.add("quit");

    CommandResult result = execute(commands, stdins);

    if (result.getExitValue() != 0) {
        // ????
        AutoException exception = new AutoException("ECOMMON-000203", fqdn, ipAddress);
        exception.addDetailInfo(
                "result=" + ReflectionToStringBuilder.toString(result, ToStringStyle.SHORT_PREFIX_STYLE));
        throw exception;
    }

    // ????
    long timeout = 10000L;
    long startTime = System.currentTimeMillis();
    while (true) {
        String hostName = getHostName(ipAddress);
        if (StringUtils.equals(fqdn, hostName)) {
            break;
        }
        if (System.currentTimeMillis() - startTime > timeout) {
            // 
            throw new AutoException("ECOMMON-000204", ipAddress, fqdn, hostName);
        }
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ignore) {
        }
    }
}