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:com.ibm.watson.app.qaclassifier.services.entities.tracking.QueryEntity.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString())
            .append("referral", this.referral == null ? null : this.referral.getId())
            .append("string", this.string).append("mode", this.mode).toString();
}

From source file:com.aef.TicketGeneratorServerIntNoDbTest.java

@Before
public void setUp() {
    // set the style here so that we can see what's going on
    ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
    ticketService = mock(TicketService.class);

    ticketGenerator.setSleepInterval(2);
    ticketGenerator.setTicketService(ticketService);

    ticketList = TestTools.createTestTicketOrders();

    LOGGER.info("Using QUEUE: " + testQueueName);

    // bound the list operations, so we can use this to check what we put into 
    // redis/*from w w  w  . ja v a  2  s.co  m*/
    listOps = testRedisTemplate.opsForList();

    // to turn JSON back to objects
    objectMapper = new ObjectMapper();
}

From source file:info.magnolia.jaas.principal.GroupListImpl.java

/**
 * @see java.lang.Object#toString()//from  w  w  w  . java 2 s  . c  om
 */
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", this.name)
            .append("list", this.list).toString();
}

From source file:be.wimsymons.intellij.polopolyimport.Target.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("profile", profile)
            .append("url", url).append("user", user).append("password", password).append("confirm", confirm)
            .toString();//from  www. jav  a2 s.c  om
}

From source file:com.aef.TicketAckProcessorIntDbEmbeddedTest.java

@Before
public void setUp() {
    // set the style here so that we can see what's going on
    ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);

    LOGGER.info("Using QUEUE: " + testAckQueueName);

    // bound the list operations, so we can use this to check what we put into 
    // redis//from   w  ww .j av  a2  s .c  om
    listOps = testRedisTemplate.opsForList();

    // to turn JSON back to objects
    objectMapper = new ObjectMapper();

    jsonFactory = new JsonFactory();

    // create an ticket ack object
    ticketAck = new TicketAck();
    ticketAck.setOrderId("OrderId1");
}

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

/**
 * {@inheritDoc}/*  www  .ja va2 s  .c o  m*/
 */
@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());
    return toStringBuilder.toString();
}

From source file:com.opengamma.integration.cashflow.PositionPayment.java

@Override
public String toString() {
    StringBuffer sb = new StringBuffer();
    ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE;
    style.appendStart(sb, this);
    style.append(sb, "position", getPosition(), null);
    style.append(sb, "type", getPaymentType(), null);
    style.append(sb, "direction", getDirection(), null);
    style.append(sb, "index", getIndex(), null);
    style.append(sb, "amount", getAmount(), null);
    style.appendEnd(sb, this);
    return sb.toString();
}

From source file:com.baidu.fsg.uid.worker.entity.WorkerNodeEntity.java

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

From source file:com.adaptris.core.interceptor.MessageStatistic.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("StartMillis", getStartMillis())
            .append("EndMillis", getEndMillis()).append("TotalMessageCount", getTotalMessageCount())
            .append("TotalMessageErrorCount", getTotalMessageErrorCount())
            .append("TotalMessageSize", getTotalMessageSize()).toString();
}

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

@Test
@Ignore// ww w . ja  v a 2s . c om
public void testGet() {
    // ?
    UsergroupGetParam param = new UsergroupGetParam();
    param.setOutput("extend");
    List<Usergroup> usergroups = client.usergroup().get(param);
    for (Usergroup usergroup : usergroups) {
        log.trace(ReflectionToStringBuilder.toString(usergroup, ToStringStyle.SHORT_PREFIX_STYLE));
    }

    if (usergroups.size() > 0) {
        // usergroupid???
        List<String> usergroupids = new ArrayList<String>();
        usergroupids.add(usergroups.get(0).getUsrgrpid());
        param.setUsrgrpids(usergroupids);
        List<Usergroup> usergroups2 = client.usergroup().get(param);

        assertEquals(1, usergroups2.size());
        assertEquals(usergroups.get(0).getUsrgrpid(), usergroups2.get(0).getUsrgrpid());
    }
}