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:net.havox.times.model.times.impl.ProjectImpl.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); builder.append(this.getId()); return builder.toString(); }
From source file:com.tesshu.subsonic.client.sample4_music_andmovie.StreamPlayMovieApplication.java
@Override public void start(Stage stage) throws Exception { Search2Controller search2 = context.getBean(Search2Controller.class); StreamController streamController = context.getBean(StreamController.class); SuccessObserver callback = context.getBean(SuccessObserver.class); SearchResult2 result2 = search2.get("CORPSE BRIDE", // query, required = true 0, // artistCount, required = false null, // artistOffset, required = false 0, // albumCount, required = false null, // albumOffset, required = false 10, // songCount, required = false null, // songOffset, required = false null // musicFolderId, required = false );// w ww. jav a2 s . c o m Child movie = result2.getSongs().stream().filter(child -> MediaType.VIDEO == child.getType()) .filter(child -> format.equals(child.getSuffix())).collect(Collectors.toSet()).iterator().next(); LOG.info(ToStringBuilder.reflectionToString(movie, ToStringStyle.MULTI_LINE_STYLE)); // not valid?(Perhaps, I have not done convert setting on the server side) @SuppressWarnings("unused") String size = Integer.toString(movie.getOriginalWidth()) + "x" + Integer.toString(movie.getOriginalHeight()); final IRequestUriObserver uriCallBack = (subject, uri) -> { uriStr = uri.toString(); }; streamController.stream( movie, // id null, // maxBitRate format, // format null, // timeOffset null, // size true, // estimateContentLength false, // converted null, // streamCallback uriCallBack, callback); Group root = new Group(); Scene scene = new Scene(root, movie.getOriginalWidth(), movie.getOriginalHeight()); Media media = new Media(uriStr); media.errorProperty().addListener((observable, old, cur) -> { LOG.info(cur + " : " + uriStr); }); MediaPlayer player = new MediaPlayer(media); player.statusProperty().addListener((observable, old, cur) -> { LOG.info(cur + " : " + uriStr); }); MediaView view = new MediaView(player); ((Group) scene.getRoot()).getChildren().add(view); stage.setScene(scene); stage.show(); player.play(); }
From source file:com.github.dozermapper.core.util.LogMsgFactory.java
private String getLogOutput(Object object) { String output = "NULL"; if (object == null) { return output; }//from ww w . j a v a 2s .c om try { if (object.getClass().isArray() || Collection.class.isAssignableFrom(object.getClass())) { output = ReflectionToStringBuilder.toString(object, ToStringStyle.MULTI_LINE_STYLE); } else { output = object.toString(); } } catch (RuntimeException e) { output = object.toString(); } return output; }
From source file:com.jkoolcloud.tnt4j.streams.parsers.ActivityJavaObjectParser.java
@Override protected String getRawDataAsMessage(Object data) { return ToStringBuilder.reflectionToString(data, ToStringStyle.MULTI_LINE_STYLE); }
From source file:de.terrestris.shogun.model.Module.java
/** * *///from w w w . jav a 2s .c om public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).appendSuper(super.toString()) .append("module_name", module_name).append("module_fullname", module_fullname).toString(); }
From source file:com.thoughtworks.go.http.mocks.MockHttpServletResponseAssert.java
public SELF hasCookie(String path, String name, String value, int maxAge, boolean secured, boolean httpOnly) { Cookie actualCookie = actual.getCookie(name); Cookie expectedCookie = new Cookie(name, value); expectedCookie.setDomain(""); expectedCookie.setPath(path);// w w w . j a v a 2 s . c o m expectedCookie.setMaxAge(maxAge); expectedCookie.setSecure(secured); expectedCookie.setHttpOnly(httpOnly); if (!EqualsBuilder.reflectionEquals(expectedCookie, actualCookie)) { this.as("cookie"); throw Failures.instance().failure(info, shouldBeEqual(ReflectionToStringBuilder.toString(actualCookie, ToStringStyle.MULTI_LINE_STYLE), ReflectionToStringBuilder.toString(expectedCookie, ToStringStyle.MULTI_LINE_STYLE), info.representation())); } return myself; }
From source file:de.terrestris.shogun.model.LayerMetadata.java
/** * *//*from w ww.ja v a 2 s. c o m*/ public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).appendSuper(super.toString()) .append("key", key).append("value", value).toString(); }
From source file:de.bausdorf.avm.tr064.beans.ArgumentType.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("name", this.name) .append("direction", this.direction).append("relatedstateVariable", this.relatedStateVariable) .toString();//from w w w .jav a 2 s . c o m }
From source file:net.havox.times.model.times.impl.WorkUnitImpl.java
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); builder.append(this.getId()); builder.append(this.getType()); builder.append(this.getDuration()); builder.append(this.getWorkUnitDuration()); builder.append(this.getWorkUnitStart()); builder.append(this.getWorkUnitEnd()); builder.append(this.getTasks()); return builder.toString(); }
From source file:de.terrestris.shogun.model.WfsProxyConfig.java
/** * *///from w w w .j a va 2 s . c om public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).appendSuper(super.toString()) .append("typename", typename).append("srs", srs).append("bbox", bbox) .append("outputformat", outputformat).append("exceptions", exceptions) .append("maxfeatures", maxfeatures).toString(); }