List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE
ToStringStyle SHORT_PREFIX_STYLE
To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.
Click Source Link
From source file:com.norconex.collector.core.filter.impl.RegexMetadataFilter.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString()) .append("caseSensitive", caseSensitive).append("field", field).append("regex", regex).toString(); }
From source file:de.yaio.services.webshot.server.controller.WebshotProvider.java
protected WebShotResultHandler runCommand(final String command, final String[] params, final long jobTimeout) throws IOException { int exitValue; boolean inBackground = false; ExecuteWatchdog watchdog = null;/* ww w. jav a 2 s . com*/ WebShotResultHandler resultHandler; // build up the command line to using a 'java.io.File' final CommandLine commandLine = new CommandLine(command); commandLine.addArguments(params); if (LOGGER.isDebugEnabled()) { LOGGER.debug("start command " + command + " with params" + new ReflectionToStringBuilder(params, ToStringStyle.SHORT_PREFIX_STYLE).toString()); } // create the executor and consider the exitValue '1' as success final Executor executor = new DefaultExecutor(); executor.setExitValue(0); // create a watchdog if requested if (jobTimeout > 0) { watchdog = new ExecuteWatchdog(jobTimeout); executor.setWatchdog(watchdog); } if (inBackground) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("[WebShot] Executing non-blocking WebShot job ..."); } resultHandler = new WebShotResultHandler(watchdog); executor.execute(commandLine, resultHandler); } else { if (LOGGER.isDebugEnabled()) { LOGGER.debug("[WebShot] Executing blocking WebShot job ..."); } exitValue = executor.execute(commandLine); resultHandler = new WebShotResultHandler(exitValue); } return resultHandler; }
From source file:com.norconex.collector.core.checksum.AbstractDocumentChecksummer.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("keep", keep) .append("targetField", targetField).toString(); }
From source file:com.norconex.collector.core.checksum.impl.GenericMetadataChecksummer.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString()) .append("disabled", disabled).append("sourceFields", sourceFields).toString(); }
From source file:com.norconex.collector.http.crawler.URLCrawlScopeStrategy.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("stayOnProtocol", stayOnProtocol) .append("stayOnDomain", stayOnDomain).append("stayOnPort", stayOnPort).toString(); }
From source file:com.mgmtp.jfunk.core.module.ContainerModule.java
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.append("name", name); if (moduleArchiveDir != null) { tsb.append("moduleArchiveDir", moduleArchiveDir); }//www. j a v a 2s . co m tsb.append("error", error); tsb.append("modules", transform(modulesWithCallbacks, new Function<ModuleWithCallbacks, TestModule>() { @Override public TestModule apply(final ModuleWithCallbacks input) { return input.testModule; } })); return tsb.toString(); }
From source file:com.norconex.committer.core.impl.MultiCommitter.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("committers", committers) .toString();//from ww w. jav a2 s .c o m }
From source file:com.norconex.importer.handler.tagger.impl.CopyTagger.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("list", list); return builder.toString(); }
From source file:com.medlog.webservice.vo.pairs.ToneKeyValuePair.java
public String toCSV() { ReflectionToStringBuilder tsb = new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); tsb.setAppendStatics(false);/*from ww w .j a v a 2s . co m*/ tsb.setExcludeFieldNames("mood", "producivtiy", "row", "diaryID", "rowTotal,shortKey,historicalRawAvg"); String r = tsb.build();//.replace(",", "</li><li>"); r = r.substring(r.indexOf("[") + 1); r = r.replace(",", "|"); r = r.replace("=", ","); return r.replace("]", "").replace("Big5", ""); }
From source file:com.omertron.omdbapi.tools.OmdbBuilder.java
@Override public String toString() { return ToStringBuilder.reflectionToString(params, ToStringStyle.SHORT_PREFIX_STYLE); }