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.pieframework.model.operations.Operations.java
@Override public String toString() { // TODO Auto-generated method stub ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE); return ReflectionToStringBuilder.toStringExclude(this, "list"); }
From source file:com.opengamma.web.bundle.BundleManager.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); for (Entry<String, Bundle> entry : _bundleMap.entrySet()) { builder.append(entry.getKey(), entry.getValue().toString()); }/*w w w. ja v a 2 s . c o m*/ return builder.toString(); // return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); }
From source file:com.google.cloud.logging.v2.LoggingSmokeTest.java
public static void executeNoCatch(String projectId) throws Exception { try (LoggingClient client = LoggingClient.create()) { LogNameOneof logName = LogNameOneof .from(LogName.create(projectId, "test-" + System.currentTimeMillis())); MonitoredResource resource = MonitoredResource.newBuilder().build(); Map<String, String> labels = new HashMap<>(); List<LogEntry> entries = new ArrayList<>(); WriteLogEntriesResponse response = client.writeLogEntries(logName, resource, labels, entries); System.out.println(ReflectionToStringBuilder.toString(response, ToStringStyle.MULTI_LINE_STYLE)); }// w w w. j a v a2 s .c o m }
From source file:edu.umd.cs.psl.sampler.HitAndRunSamplerStatistics.java
HitAndRunSamplerStatistics(AbstractHitAndRunSampler s, RunningProcess proc) { process = proc;//from ww w. j a v a 2 s . com proc.setString(descriptionKey, ToStringBuilder.reflectionToString(s, ToStringStyle.MULTI_LINE_STYLE)); proc.setLong(timeInCornersKey, 0); proc.setLong(noCallBacksKey, 0); startTime = System.currentTimeMillis(); }
From source file:com.thoughtworks.go.server.service.support.CacheInformationProvider.java
private void appendCacheConfigurationInformation(InformationStringBuilder infoCollector, GoCache cache) { CacheConfiguration configuration = cache.configuration(); infoCollector.addSubSection("Cache configuration information"); infoCollector.append(reflectionToString(configuration, ToStringStyle.MULTI_LINE_STYLE)).append("\n"); }
From source file:com.gemini.common.repository.impl.BaseRepositoryMongoDBImpl.java
@Override public T get(String id) { Logger.debug("get-find id: {}", ToStringBuilder.reflectionToString(id, ToStringStyle.MULTI_LINE_STYLE)); return findOne(getDatastore().createQuery(type).filter("_id", id)); }
From source file:com.nhncorp.ips.common.bo.ResultSenderBOImpl.java
@Override public void send(WorkRequest request) { if (StringUtils.equals(request.getSmsSendYn(), "N") && StringUtils.equals(request.getMailSendYn(), "N")) { logger.debug("### mail, sms ###\n {}", request); return;/*from w w w.jav a 2s . co m*/ } setupDetailInfo(request); logger.debug("owner info : {}", ToStringBuilder.reflectionToString(request.getOwner(), ToStringStyle.MULTI_LINE_STYLE)); for (WorkStatus workStatus : WorkStatus.values()) { if (StringUtils.equals(workStatus.getCode(), request.getWkResult().getCode())) { MailParam mailParam = workStatus.getMailParam(request); logger.debug("#######################################"); logger.debug(" ? : mailParam = {}", mailParam); logger.debug(" ? : request.getMailSendYn() = {}", request.getMailSendYn()); logger.debug("#######################################"); if (mailParam != null && request.getMailSendYn().equals("Y")) { // && request.getMailSendYn().equals("Y") logger.debug("#######################################"); logger.debug("? : {}", ToStringBuilder.reflectionToString(mailParam, ToStringStyle.MULTI_LINE_STYLE)); logger.debug("#######################################"); cosService.send(mailParam); } List<Sms> smsParam = workStatus.getSmsParam(request); logger.debug("#######################################"); logger.debug(" ? : smsParam = {}", smsParam); logger.debug(" ? : request.getSmsSendYn() = {}", request.getSmsSendYn()); logger.debug("#######################################"); if (smsParam != null && StringUtils.equals(request.getSmsSendYn(), "Y")) { logger.debug("#######################################"); logger.debug("SMS : {}", ToStringBuilder.reflectionToString(smsParam, ToStringStyle.MULTI_LINE_STYLE)); for (Sms sms : smsParam) { logger.debug("sms : {}", sms); } logger.debug("#######################################"); smsUtil.send(smsParam); } } } }
From source file:com.gemini.common.repository.impl.BaseRepositoryMongoDBImpl.java
@Override public void add(T newInstance) { Logger.debug("add: {}", ToStringBuilder.reflectionToString(newInstance, ToStringStyle.MULTI_LINE_STYLE)); save(newInstance); }
From source file:com.dp.coffee.entity.SessionBean.java
@Override public String toString() { return ToStringBuilder.reflectionToString(ToStringStyle.MULTI_LINE_STYLE); }
From source file:com.pieframework.model.system.Role.java
@Override public String toString() { ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE); return ReflectionToStringBuilder.toStringExclude(this, "list"); }