List of usage examples for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE
ToStringStyle SHORT_PREFIX_STYLE
To view the source code for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE.
Click Source Link
From source file:de.iteratec.iteraplan.model.attribute.RangeValue.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("id", getId()); builder.append("value", getValue()); builder.append("attributeType", getAttributeType()); return builder.toString(); }
From source file:ar.com.ergio.model.FindInvoiceDocType.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(bpartner.getTaxID()) .append(bpartner.getName()).append((docType.getName() == null) ? "null" : (docType.getName())) .toString();/*from w ww . ja v a 2s.com*/ }
From source file:edu.internet2.middleware.psp.spml.config.PsoIdentifier.java
/** {@inheritDoc} */ public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); toStringBuilder.append("ref", ref); toStringBuilder.append("targetId", targetId); toStringBuilder.append("containerId", containerId); return toStringBuilder.toString(); }
From source file:jp.primecloud.auto.zabbix.client.ItemClientTest.java
@Test @Ignore/*from w w w. j a va 2 s . c o m*/ public void testUpdate() { ItemUpdateParam param = new ItemUpdateParam(); param.setItemid("22285"); //:0 ??1 param.setStatus(ItemUpdateParam.ENABLE); List<String> items = client.item().update(param); for (String item : items) { log.debug(ReflectionToStringBuilder.toString(item, ToStringStyle.SHORT_PREFIX_STYLE)); } }
From source file:com.opengamma.engine.calcnode.MutableExecutionLog.java
@Override public String toString() { StringBuffer sb = new StringBuffer(); ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE; style.appendStart(sb, this); if (hasException()) { style.append(sb, "exception", getExceptionClass(), null); }/* w ww . j a v a 2s . c o m*/ if (!_logLevels.isEmpty()) { style.append(sb, "logLevels", _logLevels, null); } style.appendEnd(sb, this); return sb.toString(); }
From source file:jp.primecloud.auto.common.component.DnsStrategy.java
/** * TODO: //from ww w . ja v a 2 s .co m * * @param fqdn * @param canonicalName */ public void addCanonicalName(String fqdn, String canonicalName) { List<String> commands = createCommands(); List<String> stdins = createStdinsCommon(); stdins.addAll(createAddCanonicalName(fqdn, canonicalName)); stdins.add("quit"); CommandResult result = execute(commands, stdins); if (result.getExitValue() != 0) { // CNAME?? AutoException exception = new AutoException("ECOMMON-000205", fqdn, canonicalName); exception.addDetailInfo( "result=" + ReflectionToStringBuilder.toString(result, ToStringStyle.SHORT_PREFIX_STYLE)); throw exception; } // CNAME?????????????????? }
From source file:de.smartics.maven.plugin.jboss.modules.descriptor.ApplyToDependencies.java
/** * {@inheritDoc}/* ww w .j ava2 s.c om*/ * <p> * Provides the properties via reflection for displaying debug information. * </p> */ @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE, false, null); }
From source file:com.iggroup.oss.restdoclet.doclet.type.Service.java
/** * {@inheritDoc}/*from ww w . jav a 2 s.co m*/ */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("identifier", identifier) .append("uris", uris).append("controller", controller).toString(); }
From source file:com.xtructure.xneat.genetics.impl.AbstractGene.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)// .append("id", getId())// .append("inn", getInnovation())// .append("fields", getFieldMap())// .toString();/*from www . j a v a2 s .c o m*/ }
From source file:com.restqueue.framework.SerializerUnitTest.java
@Test public void toStringOfEntryWrapperShouldMatchAfterSerializingAndDeSerializing() { final EntryWrapper entryWrapperBefore = new EntryWrapper(); entryWrapperBefore.setCreator("Testing"); entryWrapperBefore.setContent("Hello - Testing"); entryWrapperBefore.addReturnAddress(new ReturnAddress(ReturnAddressType.EMAIL, "me@there.com")); entryWrapperBefore.addReturnAddress(new ReturnAddress(ReturnAddressType.URL, "http://localhost:9998/channels/1.0/stockQueryResultsQueue")); entryWrapperBefore.setDelay("60"); entryWrapperBefore.setPriority(11);/*from w w w . ja v a 2s.c om*/ entryWrapperBefore.setSequence(8); final String beforeString = ReflectionToStringBuilder.toString(entryWrapperBefore, ToStringStyle.SHORT_PREFIX_STYLE); final EntryWrapper entryWrapperAfter = (EntryWrapper) new Serializer().fromType( new Serializer().toType(entryWrapperBefore, MediaType.APPLICATION_XML), MediaType.APPLICATION_XML); final String afterString = ReflectionToStringBuilder.toString(entryWrapperAfter, ToStringStyle.SHORT_PREFIX_STYLE); assertEquals(beforeString, afterString); }