List of usage examples for org.apache.commons.lang.builder ToStringBuilder ToStringBuilder
public ToStringBuilder(Object object, ToStringStyle style)
Constructor for ToStringBuilder
specifying the output style.
If the style is null
, the default style is used.
From source file:mx.edu.um.model.Pais.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append(this.id).append(this.version) .append(this.nombre).toString(); }
From source file:edu.utah.further.fqe.ds.api.domain.AbstractResultContext.java
/** * @return/*from w w w.j av a2 s. c o m*/ * @see edu.utah.further.fqe.ds.api.domain.ResultContext#toString() */ @Override public final String toString() { return new ToStringBuilder(this, SHORT_WITH_SPACES_STYLE).append("id", getId()) .append("rootEntityClass", getRootEntityClass()) .append("transferObjectClass", getTransferObjectClass()).append("numRecords", getNumRecords()) .toString(); }
From source file:com.photon.phresco.configuration.Configuration.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("name", getName()) .append("desc", getDesc()).append("type", getType()).append("envName", getEnvName()) .append("properties", getProperties()).toString(); }
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.likethecolor.alchemy.api.entity.AbstractAlchemyEntity.java
/** * @return string representing this object * * @see ToStringBuilder//from w w w .j a v a 2 s .c o m */ public String toString(final ToStringStyle style) { return new ToStringBuilder(this, style).append("score", getScore()).toString(); }
From source file:com.beingjavaguys.polymorphism.CashPayment.java
@Override public String toString() { ToStringBuilder toStringBuilder = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE); toStringBuilder.append("paymentId", paymentId); toStringBuilder.append("paymentAmount", paymentAmount); toStringBuilder.append("paymentCurrency", paymentCurrency); toStringBuilder.append("payerName", payerName); return toStringBuilder.toString(); }
From source file:com.likethecolor.alchemy.api.entity.AuthorAlchemyEntity.java
/** * @return string representing this object * * @see ToStringBuilder//ww w . j a v a 2 s . c o m */ public String toString(final ToStringStyle style) { // note - do not do super.toString // it will result in a StackOverflowError from ToStringStyle return new ToStringBuilder(this, style).append("author", author).toString(); }
From source file:edu.utah.further.core.util.composite.DataSource.java
/** * @return// w w w.java2 s. c om * @see java.lang.Object#toString() */ @Override public String toString() { return new ToStringBuilder(this, SHORT_WITH_SPACES_STYLE).append("name", getName()) .append("description", getDescription()).append("url", getUrl()).append("admin", getMainContact()) .toString(); }
From source file:com.photon.phresco.commons.model.LogInfo.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("id", getId()) .append("message", getMessage()).append("trace", getTrace()).append("action", getAction()) .append("userId", getUserId()).append("customerId", getCustomerId()).append("appId", getAppId()) .toString();/* w ww. ja v a2s. c o m*/ }
From source file:info.magnolia.jaas.principal.GroupListImpl.java
/** * @see java.lang.Object#toString()//from w ww .ja va2 s .co m */ public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", this.name) .append("list", this.list).toString(); }