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:com.jeefuse.system.log.web.rto.GsysLoginlogRTO.java
/** @generated */ @Override//from ww w .j a va2s .c o m public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()) .append("loginIp", loginIp).append("createdate", createdate).append("message", message) .append("userId", userId).toString(); }
From source file:com.xtructure.xutil.BinaryIndexedTree.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)// .append("freq", freq)// .append("tree", tree)// .toString();//from ww w .j a v a 2s. c o m }
From source file:fr.dudie.acrachilisync.handler.AcraToChiliprojectSyncHandler.java
/** * {@inheritDoc}// w w w. j a v a 2s . c o m * * @see fr.dudie.acrachilisync.handler.AcraReportHandler#onKnownIssueNotSynchronized(fr.dudie.acrachilisync.model.AcraReport, * org.redmine.ta.beans.Issue) */ @Override public void onKnownIssueNotSynchronized(final AcraReport pReport, final Issue pIssue) throws SynchronizationException { IssueDescriptionReader reader = null; try { reader = new IssueDescriptionReader(pIssue); } catch (final IssueParseException e) { throw new SynchronizationException("Unable to parse description of issue " + pIssue.getId(), e); } final IssueDescriptionBuilder builder = new IssueDescriptionBuilder(reader.getStacktrace()); builder.setOccurrences(reader.getOccurrences()); builder.addOccurrence(IssueDescriptionUtils.toErrorOccurrence(pReport)); pIssue.setDescription(builder.build()); try { redmineClient.updateIssue(pIssue); } catch (final Exception e) { pReport.setStatus(SyncStatus.FAILURE); if (LOGGER.isDebugEnabled()) { LOGGER.debug("Failure while updating issue: \n{}", ToStringBuilder.reflectionToString(pIssue, ToStringStyle.MULTI_LINE_STYLE)); } throw new SynchronizationException( String.format("Unable to update issue %s for ACRA report %s", pIssue.getId(), pReport.getId()), e); } pReport.setStatus(SyncStatus.SUCCESS); }
From source file:com.jeefuse.system.security.model.GsysResource.java
/** @generated */ @Override//from w w w.j ava 2s. c o m public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", id).append("name", name) .append("descript", descript).append("value", value).append("type", type) .append("gsysRelRoleResources", gsysRelRoleResources).toString(); }
From source file:com.kbotpro.ui.FieldWatcher.java
public void run() { while (active) { String html = "<html><body>" + EscapeChars/*from www. jav a 2s .c om*/ .forHTML(ReflectionToStringBuilder.toString(watchedObj, ToStringStyle.MULTI_LINE_STYLE)) + "</body></html>"; infoLabel.setText(html); try { Thread.sleep((int) (1000D / ((Double) updateRateSpinner.getValue()))); } catch (InterruptedException e) { Logger.getRootLogger().error("Exception: ", e); //To change body of catch statement use File | Settings | File Templates. } } }
From source file:com.enonic.cms.domain.content.index.ContentIndexQuery.java
@Override public String toString() { ToStringBuilder s = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); s.append("index", index); s.append("count", count); s.append("query", query); s.append("categoryAccessTypeFilter", categoryAccessTypeFilter); s.append("approvedSectionContentOnly", sectionFilterStatus); s.append("contentStatusFilter", contentStatusFilter); s.append("contentOnlineAtFilter", contentOnlineAtFilter); s.append("contentFilter", contentFilter); s.append("sectionFilter", sectionFilter); s.append("categoryFilter", getCategoryFilter()); s.append("contentTypeFilter", getContentTypeFilter()); s.append("securityFilter", getSecurityFilter()); return s.toString(); }
From source file:com.enonic.cms.core.content.index.ContentIndexQuery.java
@Override public String toString() { ToStringBuilder s = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); s.append("index", index); s.append("count", count); s.append("query", query); s.append("categoryAccessTypeFilter", categoryAccessTypeFilter); s.append("approvedSectionContentOnly", sectionFilterStatus); s.append("contentStatusFilter", contentStatusFilter); s.append("contentOnlineAtFilter", contentOnlineAtFilter); s.append("contentFilter", contentFilter); s.append("sectionFilter", sectionFilter); s.append("categoryFilter", getCategoryFilter()); s.append("contentTypeFilter", getContentTypeFilter()); s.append("securityFilter", getSecurityFilter()); s.append("orderBySection", orderBySection); s.append("facetDefinition", facets); return s.toString(); }
From source file:com.nhncorp.ips.common.bo.ResultSenderBOImpl.java
/** * @param request// w w w . jav a 2 s . c o m */ private void setupDetailInfo(WorkRequest request) { // seller . List<ReportProduct> productList = request.getProductList(); Seller seller; for (ReportProduct reportProduct : productList) { // ?? seller ? ? // ? seller ? ? . if (reportProduct.getPresume() != null) { reportProduct.setSeller(reportProduct.getPresume().getSeller()); } seller = reportProduct.getSeller(); // seller // ? . if (seller.getId() == null) { // ? ? ID Product API seller . RemoteSimpleProduct product = remoteSimpleProductService.get(reportProduct.getProductId()); seller.setId(product.getSellerId()); seller.setNo(product.getSellerNo()); seller.setShopName(product.getSellerShopName()); } logger.debug("#### {} ? ?? ? {}", request.getWkResult().getName(), seller); // seller seller api ? seller? // seller? . // TODO ? ? API? seller? ? ? API ? . RemoteSeller remoteSeller = remoteSellerService.findByLoginId(seller.getId()); logger.debug("### ? seller ? : {}", ToStringBuilder.reflectionToString(remoteSeller, ToStringStyle.MULTI_LINE_STYLE)); if (StringUtils.equals(remoteSeller.getType().getCode(), SellerType.PERSONAL.getCode()) || StringUtils.equals(remoteSeller.getType().getCode(), SellerType.DOMESTIC_PERSONAL.getCode()) || StringUtils.equals(remoteSeller.getType().getCode(), SellerType.BUSINESS.getCode()) || StringUtils.equals(remoteSeller.getType().getCode(), SellerType.DOMESTIC_BUSINESS.getCode())) { seller.setPhoneNumber(remoteSeller.getCellPhoneNumber()); } else if (StringUtils.equals(remoteSeller.getType().getCode(), SellerType.OVERSEAS_PERSONAL.getCode())) { seller.setPhoneNumber(remoteSeller.getOverseasTelephoneNumber()); } else if (StringUtils.equals(remoteSeller.getType().getCode(), SellerType.OVERSEAS_BUSINESS.getCode())) { BusinessSeller businessSeller = (BusinessSeller) remoteSeller; seller.setPhoneNumber(businessSeller.getChargerOverseasTelephoneNumber()); } // ? final Owner owner = ownerBO.findOwnerByReportedProduct(reportProduct); reportProduct.setReportingOwner(owner); request.setOwner(owner); } }
From source file:fr.dudie.nominatim.client.JsonNominatimClientTest.java
@Test public void testSearchWithForLongPlaceId() throws IOException { LOGGER.info("testSearchWithResults.start"); final List<Address> addresses = nominatimClient .search(". ,37, ?--"); assertNotNull("result list is not null", addresses); for (final Address address : addresses) { LOGGER.debug(ToStringBuilder.reflectionToString(address, ToStringStyle.MULTI_LINE_STYLE)); }//from w w w . j av a 2s . c o m assertTrue("list is not empty", !addresses.isEmpty()); LOGGER.info("testSearchWithResults.end"); }
From source file:com.likethecolor.alchemy.api.entity.TaxonomyAlchemyEntityTest.java
@Test public void testToString_Formatted() { final ToStringStyle style = ToStringStyle.MULTI_LINE_STYLE; final boolean isConfident = false; final Double score = 0.1467D; final String label = "culture_politics"; final TaxonomyAlchemyEntity entity = new TaxonomyAlchemyEntity(label, score, isConfident); final String expectedString = new ToStringBuilder(entity, style).append("is confident", isConfident) .append("label", label).append("score", score).toString(); final String actualString = entity.toString(style); assertEquals(expectedString, actualString); }