List of usage examples for org.apache.commons.lang.builder ToStringStyle MULTI_LINE_STYLE
ToStringStyle MULTI_LINE_STYLE
To view the source code for org.apache.commons.lang.builder ToStringStyle MULTI_LINE_STYLE.
Click Source Link
From source file:org.apromore.canoniser.yawl.internal.utils.ConversionUtils.java
/** * Returns a nicely formatted String with information about an Net * * @param net/*from ww w.j ava 2s. c o m*/ * NetType * @return readable String */ public static String toString(final NetType net) { final ToStringBuilder sb = new ToStringBuilder(net, ToStringStyle.MULTI_LINE_STYLE); return sb.append("id", net.getId()).append("name", net.getName()) .append("nodes", nodesToString(net.getNode())).append("edge", edgesToString(net.getEdge())) .toString(); }
From source file:org.apromore.canoniser.yawl.internal.utils.ConversionUtils.java
/** * Returns a nicely formatted String with information about a HumanType * * @param resource//w ww. j av a2s . c o m * HumanType * @return readable String */ public static String toString(final HumanType resource) { final ToStringBuilder sb = new ToStringBuilder(resource, ToStringStyle.MULTI_LINE_STYLE); return sb.append("id", resource.getId()).append("name", resource.getName()) .append("type", resource.getType()).toString(); }
From source file:org.apromore.canoniser.yawl.internal.utils.ConversionUtils.java
/** * Returns a nicely formatted String with information about a NonhumanType * * @param resource/*w ww .ja va 2s . c o m*/ * NonhumanType * @return readable String */ public static String toString(final NonhumanType resource) { final ToStringBuilder sb = new ToStringBuilder(resource, ToStringStyle.MULTI_LINE_STYLE); return sb.append("id", resource.getId()).append("name", resource.getName()) .append("type", resource.getType()).toString(); }
From source file:org.bibsonomy.database.params.GenericParam.java
/** * Introspect the current param object and return a string representation of the form attribute = value * for all attributes of this object./*from w ww . j a v a 2 s .c o m*/ * * @return - a string representation of the given object by introspection. */ @Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE); }
From source file:org.bibsonomy.lucene.database.params.GenericParam.java
/** * Introspect the current param object and return a string representation of the form attribute = value * for all attributes of this object.//from w ww . j a v a2s .c o m * * @return - a string representation of the given object by introspection. */ public String toStringByReflection() { return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE); }
From source file:org.codemucker.testserver.capturing.ACapturedRequest.java
@Override public void describeTo(final Description desc) { super.describeTo(desc); desc.text(ToStringBuilder.reflectionToString(expect, ToStringStyle.MULTI_LINE_STYLE)); desc.value("cookies", cookieMatchers); desc.value("headers", headerMatchers); desc.value("multiPartContent fileItems", fileItemMatchers); }
From source file:org.coury.jfilehelpers.helpers.StringHelper.java
private static String getToString(final Object o) throws ClassNotFoundException { Class.forName("org.apache.commons.lang.builder.ToStringBuilder"); return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(o, ToStringStyle.MULTI_LINE_STYLE); }
From source file:org.fracturedatlas.athena.apa.impl.jpa.JpaRecord.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); builder.append(id).append(type);/* w w w .j a v a 2 s. c om*/ if (ticketProps != null) { for (TicketProp prop : ticketProps) { String propAndValue = "(" + prop.getPropField().getId() + ") " + prop.getPropField().getName() + ": [" + prop.getValueAsString() + "]"; builder.append(propAndValue); } } return builder.toString(); }
From source file:org.fracturedatlas.athena.helper.lock.model.AthenaLock.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); builder.append(id).append(lockedByApi).append(lockedByIp).append(status).append(lockExpires) .append(tickets);/*from w ww .j a v a 2 s .com*/ return builder.toString(); }
From source file:org.fracturedatlas.athena.payments.model.AuthorizationRequest.java
@Override public String toEscapedString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); return builder.append(storeCard).append(super.toEscapedString()).toString(); }