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:gov.nih.nci.iso21090.reference.client.ClientUtils.java
/** * Displays a retrieved result./*from w w w . ja v a 2s . co m*/ * @param result to inspect and display */ public static void handleResult(Object result) { System.out.println(ToStringBuilder.reflectionToString(result, ToStringStyle.MULTI_LINE_STYLE)); }
From source file:Main.java
public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", id) .append("firstName", firstName).append("lastName", lastName).toString(); }
From source file:com.rogueai.framework.snmp2bean.helper.TestHelper.java
public static void printBean(Object object) { System.out.println(ToStringBuilder.reflectionToString(object, ToStringStyle.MULTI_LINE_STYLE)); }
From source file:com.google.cloud.language.v1.LanguageServiceSmokeTest.java
public static void executeNoCatch() throws Exception { try (LanguageServiceClient client = LanguageServiceClient.create()) { String content = "Hello, world!"; Document.Type type = Document.Type.PLAIN_TEXT; Document document = Document.newBuilder().setContent(content).setType(type).build(); AnalyzeSentimentResponse response = client.analyzeSentiment(document); System.out.println(ReflectionToStringBuilder.toString(response, ToStringStyle.MULTI_LINE_STYLE)); }// w w w . j ava 2 s .c o m }
From source file:com.enonic.cms.core.SiteBasePathAndSitePath.java
public String toString() { ToStringBuilder s = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); s.append("siteBasePath", siteBasePath); s.append("sitePath", sitePath); return s.toString(); }
From source file:com.enonic.cms.core.PortalSiteBasePath.java
public String toString() { ToStringBuilder s = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); s.append("sitePrefixPath", sitePrefixPath); s.append("siteKey", siteKey.toString()); s.append("asPath", asPath.toString()); return s.toString(); }
From source file:com.google.cloud.speech.v1.SpeechSmokeTest.java
public static void executeNoCatch() throws Exception { try (SpeechClient client = SpeechClient.create()) { String languageCode = "en-US"; int sampleRateHertz = 44100; RecognitionConfig.AudioEncoding encoding = RecognitionConfig.AudioEncoding.FLAC; RecognitionConfig config = RecognitionConfig.newBuilder().setLanguageCode(languageCode) .setSampleRateHertz(sampleRateHertz).setEncoding(encoding).build(); String uri = "gs://gapic-toolkit/hello.flac"; RecognitionAudio audio = RecognitionAudio.newBuilder().setUri(uri).build(); RecognizeResponse response = client.recognize(config, audio); System.out.println(ReflectionToStringBuilder.toString(response, ToStringStyle.MULTI_LINE_STYLE)); }// w ww . j a va 2 s .co m }
From source file:com.google.cloud.speech.v1beta1.SpeechSmokeTest.java
public static void executeNoCatch() throws Exception { try (SpeechClient client = SpeechClient.create()) { String languageCode = "en-US"; int sampleRate = 44100; RecognitionConfig.AudioEncoding encoding = RecognitionConfig.AudioEncoding.FLAC; RecognitionConfig config = RecognitionConfig.newBuilder().setLanguageCode(languageCode) .setSampleRate(sampleRate).setEncoding(encoding).build(); String uri = "gs://gapic-toolkit/hello.flac"; RecognitionAudio audio = RecognitionAudio.newBuilder().setUri(uri).build(); SyncRecognizeResponse response = client.syncRecognize(config, audio); System.out.println(ReflectionToStringBuilder.toString(response, ToStringStyle.MULTI_LINE_STYLE)); }/*from www . ja v a 2 s . c om*/ }
From source file:com.google.cloud.dlp.v2beta1.DlpServiceSmokeTest.java
public static void executeNoCatch() throws Exception { try (DlpServiceClient client = DlpServiceClient.create()) { Likelihood minLikelihood = Likelihood.POSSIBLE; InspectConfig inspectConfig = InspectConfig.newBuilder().setMinLikelihood(minLikelihood).build(); String type = "text/plain"; String value = "my phone number is 215-512-1212"; ContentItem itemsElement = ContentItem.newBuilder().setType(type).setValue(value).build(); List<ContentItem> items = Arrays.asList(itemsElement); InspectContentResponse response = client.inspectContent(inspectConfig, items); System.out.println(ReflectionToStringBuilder.toString(response, ToStringStyle.MULTI_LINE_STYLE)); }// w w w . j a v a2 s . c o m }
From source file:com.jdit.onlinepaymentexchange.Merchant.java
/** * {@link #businesses}, {@link #products} ?? * ?{@link #businesses}?//from www . j a v a 2 s .c o m * {@link #products}? */ public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); }