List of usage examples for org.apache.commons.lang.builder ToStringBuilder append
public ToStringBuilder append(short[] array)
Append to the toString
a short
array.
From source file:de.iteratec.iteraplan.businesslogic.exchange.elasticExcel.workbookdata.ColumnContext.java
/**{@inheritDoc}**/ @Override/*www .ja v a 2 s . c o m*/ public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append(featureExpression.getPersistentName()); builder.append(headerCellReference.formatAsString()); return builder.toString(); }
From source file:com.funambol.ctp.core.Ok.java
/** * Returns a string representation of the object. * @return a string representation of the object. *///from ww w .ja v a 2 s . com @Override public String toString() { StringBuilder tmp = new StringBuilder(); tmp.append(PARAM_NONCE).append("(B64)"); ToStringBuilder sb = new ToStringBuilder(this); sb.append(super.toString()); sb.append(PARAM_NONCE, nonce != null ? DbgTools.bytesToHex(nonce) : nonce); sb.append(tmp.toString(), nonce != null ? new String(Base64.encode(nonce)) : nonce); return sb.toString(); }
From source file:it.filosganga.mobile.widgets.component.TableColumn.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()); builder.append(label).append(shortLabel).append(colspan); return builder.toString(); }
From source file:it.filosganga.mobile.widgets.component.TableCell.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()); builder.append(summary); builder.append(colspan);//from ww w . j a v a2 s. c om return builder.toString(); }
From source file:it.filosganga.mobile.widgets.component.TableHeader.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()); builder.append(columns); return builder.toString(); }
From source file:com.safetys.framework.jmesa.limit.FilterSet.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); for (Iterator<Filter> iter = filters.iterator(); iter.hasNext();) { Filter filter = iter.next(); builder.append(filter.toString()); }/*from ww w .j a v a2s . c o m*/ return builder.toString(); }
From source file:de.escidoc.core.aa.business.xacml.util.MapResult.java
/** * See Interface for functional description. */// w w w . j a va2 s . co m @Override public String toString() { final ToStringBuilder toStringBuilder = new ToStringBuilder(this); toStringBuilder.append(super.toString()); toStringBuilder.append("cacheId", getCacheId()); toStringBuilder.append("resolvableId", getresolvableAttributeId()); toStringBuilder.append("nextAttributeId", getNextAttributeId()); toStringBuilder.append("contentTypeId", getContentTypePredicateId()); toStringBuilder.append("contentTypeTitle", getContentTypeTitle()); return toStringBuilder.toString(); }
From source file:com.google.code.simplestuff.bean.SimpleBean.java
/** * /*from w w w . ja v a 2 s . co m*/ * Returns the description of a bean considering only the * {@link BusinessField} annotated fields. * * @param bean The bean to describe. * @return The description of the bean. * @throws IllegalArgumentException If the bean is not a Business Object. */ public static String toString(Object bean) { if (bean == null) { throw new IllegalArgumentException("The bean passed is null!!!"); } BusinessObjectDescriptor businessObjectInfo = BusinessObjectContext .getBusinessObjectDescriptor(bean.getClass()); if (businessObjectInfo == null) { return bean.toString(); // throw new IllegalArgumentException( // "The bean passed is not annotated in the hierarchy as Business Object!!!"); } Collection<Field> annotatedField = businessObjectInfo.getAnnotatedFields(); ToStringBuilder builder = new ToStringBuilder(bean, ToStringStyle.MULTI_LINE_STYLE); for (Field field : annotatedField) { final BusinessField fieldAnnotation = field.getAnnotation(BusinessField.class); if ((fieldAnnotation != null) && (fieldAnnotation.includeInToString())) { try { // Vincenzo Vitale(vita) May 23, 2007 2:39:26 PM: some // date implementations give not equals values... if ((ClassUtils.isAssignable(field.getType(), Date.class)) || (ClassUtils.isAssignable(field.getType(), Calendar.class))) { Object fieldValue = PropertyUtils.getProperty(bean, field.getName()); if (fieldValue != null) { builder.append(DateUtils.round(fieldValue, Calendar.SECOND)); } } else { builder.append(PropertyUtils.getProperty(bean, field.getName())); } } catch (IllegalAccessException e) { if (log.isDebugEnabled()) { log.debug( "IllegalAccessException exception when calculating the string representation of class" + bean.getClass().toString(), e); } } catch (InvocationTargetException e) { if (log.isDebugEnabled()) { log.debug( "InvocationTargetException exception when calculating the string representation of class" + bean.getClass().toString(), e); } } catch (NoSuchMethodException e) { if (log.isDebugEnabled()) { log.debug( "NoSuchMethodException exception when calculating the string representation of a bean of class" + bean.getClass().toString(), e); } } } } return builder.toString(); }
From source file:com.safetys.framework.jmesa.limit.SortSet.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); if (sorts != null) { for (Iterator<Sort> iter = sorts.iterator(); iter.hasNext();) { Sort sort = iter.next();/* w ww . jav a2 s .c o m*/ builder.append(sort.toString()); } } return builder.toString(); }
From source file:br.com.nordestefomento.jrimum.domkee.financeiro.banco.febraban.Banco.java
@Override public String toString() { ToStringBuilder tb = new ToStringBuilder(this); tb.append(codigoDeCompensacaoBACEN); tb.append(segmento);//from ww w .ja v a2 s .c om tb.append(pessoaJuridica); return tb.toString(); }