List of usage examples for org.apache.commons.lang3.builder ToStringStyle MULTI_LINE_STYLE
ToStringStyle MULTI_LINE_STYLE
To view the source code for org.apache.commons.lang3.builder ToStringStyle MULTI_LINE_STYLE.
Click Source Link
From source file:org.tango.server.command.CommandImpl.java
@Override public String toString() { final ReflectionToStringBuilder reflectionToStringBuilder = new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); reflectionToStringBuilder.setExcludeFieldNames(new String[] { "inType", "outType", "history" }); return reflectionToStringBuilder.toString(); }
From source file:org.tango.server.servant.DeviceImpl.java
/** * String representation of device impl. * * @return a string// www .j av a 2 s . c o m */ @Override public String toString() { final ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); builder.append("name", name); builder.append("device class", businessObject.getClass()); builder.append("device tango class", className); builder.append("Commands", commandList); builder.append("Attributes", attributeList); return builder.toString(); }
From source file:org.yamj.core.service.metadata.online.TheTVDbScannerTest.java
/** * Test of scan method, of class TheTVDbScanner. *//*from w w w . jav a2 s .com*/ @Test public void testScan() { LOG.info("scan"); Series series = new Series(); // Test that we get an error when scanning without an ID ScanResult result = tvdbScanner.scan(series); assertEquals("Wrong ScanResult returned", ScanResult.MISSING_ID, result); series = new Series(); series.setSourceDbId(PLUGIN_ID, "70726"); result = tvdbScanner.scan(series); LOG.info("***** SERIES {} *****", ToStringBuilder.reflectionToString(series, ToStringStyle.MULTI_LINE_STYLE)); assertEquals("Wrong ScanResult returned", ScanResult.OK, result); assertEquals("Wrong series ID returned", "70726", series.getSourceDbId(PLUGIN_ID)); assertEquals("Wrong title", "Babylon 5", series.getTitle()); assertFalse("No Genres found", series.getGenreNames().isEmpty()); }
From source file:org.zhangmz.pickles.helper.vo.MainInfo.java
public String toString() { ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE); return ReflectionToStringBuilder.toString(this); }