@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString()) .append("persoon", persoon) .append("ouder1", ouder1) .append("ouder2", ouder2) .append("nationaliteiten", nationaliteiten) .append("huwelijken", huwelijken) .append("overlijden", overlijden) .append("inschrijving", inschrijving) .append("adres", adres) .append("kinderen", kinderen) .append("verblijfstitel", verblijfstitel) .append("gezagsverhouding", gezagsverhouding) .append("reisdocumenten", reisdocumenten) .append("kiesrecht", kiesrecht) .toString(); }
/** * toString produces a human readable representation of the WsFederationCredential. * * @return a human readable representation of the WsFederationCredential */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE) .append("ID", this.id) .append("Issuer", this.issuer) .append("Audience", this.audience) .append("Authentication Method", this.authenticationMethod) .append("Issued On", this.issuedOn) .append("Valid After", this.notBefore) .append("Valid Before", this.notOnOrAfter) .append("Attributes", this.attributes) .build(); }
@Override public String toString() { return new ToStringBuilder(this) .append("wtrealm", wtrealm) .append("wreply", wreply) .append("wctx", wctx) .append("wfresh", wfresh) .append("whr", whr) .append("wresult", wresult) .append("relayState", relayState) .append("samlResponse", samlResponse) .append("state", state) .append("code", code) .append("wa", wa) .append("wauth", wauth) .append("wreq", wreq) .toString(); }
/** * 获取当前节点信息 * * @param processInstance * @return */ private Task getCurrentTaskInfo(ProcessInstance processInstance) { Task currentTask = null; try { String activitiId = (String) PropertyUtils.getProperty(processInstance, "activityId"); logger.debug("current activity id: {}", activitiId); currentTask = taskService.createTaskQuery().processInstanceId(processInstance.getId()).taskDefinitionKey(activitiId) .singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); } catch (Exception e) { logger.error("can not get property activityId from processInstance: {}", processInstance); } return currentTask; }
@Override public String toString() { return new ToStringBuilder(this) .appendSuper(super.toString()) .append("allowedAttributes", allowedAttributes) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .appendSuper(super.toString()) .append("startingDateTime", startingDateTime) .append("endingDateTime", endingDateTime) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("compareSubject", getCompareSubject()) .append("fieldName", this.fieldName) .append("leftVal", this.leftVal) .append("rightVal", this.rightVal) .append("leftObjectDetail", this.left) .append("rightObjectDetail", this.right) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .appendSuper(super.toString()) .append("crdtId", getCrdtId()) .append("element", element) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("multifactorAuthenticationProviders", this.multifactorAuthenticationProviders) .append("failureMode", this.failureMode) .append("principalAttributeNameTrigger", this.principalAttributeNameTrigger) .append("principalAttributeValueToMatch", this.principalAttributeValueToMatch) .append("bypassEnabled", this.bypassEnabled) .toString(); }
/** * {@inheritDoc} */ @Override public String toString() { return new ToStringBuilder(this) .append("username", username) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("failureThreshold", this.failureThreshold) .append("failureRangeInSeconds", this.failureRangeInSeconds) .append("usernameParameter", this.usernameParameter) .append("thresholdRate", this.thresholdRate) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("ticketId", ticketId) .append("service", service) .append("status", status) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("id", id) .append("sequence", sequence) .append("time", time) .append("origin", origin) .append("information", information) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("value", value) .append("clock", clock) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("email", email) .append("firstName", firstName) .append("lastName", lastName) .append("signInProvider", signInProvider) .toString(); }
private void setObject(final String path, final Object object) { Object newRoot = setObjectRecursive(this.root, split2List(path), 0, object); if (isSuitForRoot(newRoot)) { this.root = newRoot; return; } throw DataXException.asDataXException(CommonErrorCode.RUNTIME_ERROR, String.format("值[%s]无法适配您提供[%s], 该异常代表系统编程错误, 请联系DataX开发团队!", ToStringBuilder.reflectionToString(object), path)); }
@Override public String toString() { return new ToStringBuilder(this) .append("proxyGrantingTicket", proxyGrantingTicket) .append("proxyTicket", proxyTicket) .toString(); }
@Override public String getMessageString() { //@formatter:off return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE) .append("category", getCategory().getCode()) .append(ATTR_MESSAGE_TYPE, getMessageType()) .append(ATTR_DATA, Hex.encodeHex(getData())) .append(ATTR_TIME_STAMP, getTimeStamp()) .toString(); //@formatter:on }
@Test public void testDoAsciiStringSplit() { // String left = "adde"; // String right = "xyz"; // int expectSliceNumber = 4; String left = "a"; String right = "z"; int expectSliceNumber = 3; String[] result = RangeSplitUtil.doAsciiStringSplit(left, right, expectSliceNumber); System.out.println(ToStringBuilder.reflectionToString(result, ToStringStyle.SIMPLE_STYLE)); }
@Override public String toString() { return new ToStringBuilder(this) .append("target", target) .append("codeDependencyType", codeDependencyType) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("attributeRepository", attributeRepository) .append("cache", cache) .append("cacheName", cacheName) .append("durationTimeUnit", duration.getTimeUnit()) .append("durationAmount", duration.getDurationAmount()) .append("mergingStrategy", mergingStrategy) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE). append("email", email). append("timestamp", timestamp). append("token", token). toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("location", this.location) .append("algorithm", this.algorithm) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("mdc", Hex.toHexString(mdc)) .append("signature", Hex.toHexString(signature)) .append("type", Hex.toHexString(type)) .append("data", Hex.toHexString(data)).toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("customerId", rootAggregateId) .append("eventId", eventId) .append("created", created) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("id", id) .append("isbn", isbn) .append("title", title) .append("description", description) .append("authors", authors) .append("publisher", publisher) .toString(); }
@Override public String toString() { final ToStringBuilder builder = new ToStringBuilder(this); builder.appendSuper(super.toString()); builder.append("clientId", getClientId()); builder.append("approvalPrompt", isBypassApprovalPrompt()); return builder.toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("accountingPort", this.accountingPort) .append("authenticationPort", this.authenticationPort) .append("socketTimeout", this.socketTimeout) .append("inetAddress", this.inetAddress) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append(this.host) .append(this.port) .append(this.messageId).toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("type", getType()) .append("title", getTitle()) .append("date", getDate()) .append("summary", getSummary()) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("object", object) .append("method", method) .append("httpMethod", httpMethod) .append("path", path) .append("security", security) .append("beforeProxyChain", beforeProxyChain) .append("afterProxyChain", afterProxyChain) .append("paramters", paramters) .toString(); }
@Override public String toString() { return new ToStringBuilder(this) .append("id", id) .append("itemId", itemId) .append("userId", userId) .toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE) .append("principal", principal) .append("geography", geography) .append("date", date) .append("name", name) .toString(); }
@Test public void testImportFromXSPF() throws Exception { String username = "testUser"; String playlistName = "test-playlist"; StringBuilder builder = new StringBuilder(); builder.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n" + " <trackList>\n"); File mf1 = folder.newFile(); FileUtils.touch(mf1); File mf2 = folder.newFile(); FileUtils.touch(mf2); File mf3 = folder.newFile(); FileUtils.touch(mf3); builder.append("<track><location>file://" + mf1.getAbsolutePath() + "</location></track>\n"); builder.append("<track><location>file://" + mf2.getAbsolutePath() + "</location></track>\n"); builder.append("<track><location>file://" + mf3.getAbsolutePath() + "</location></track>\n"); builder.append(" </trackList>\n" + "</playlist>\n"); doAnswer(new PersistPlayList(23)).when(playlistDao).createPlaylist(any()); doAnswer(new MediaFileHasEverything()).when(mediaFileService).getMediaFile(any(File.class)); InputStream inputStream = new ByteArrayInputStream(builder.toString().getBytes("UTF-8")); String path = "/path/to/"+playlistName+".xspf"; playlistService.importPlaylist(username, playlistName, path, inputStream, null); verify(playlistDao).createPlaylist(actual.capture()); verify(playlistDao).setFilesInPlaylist(eq(23), medias.capture()); Playlist expected = new Playlist(); expected.setUsername(username); expected.setName(playlistName); expected.setComment("Auto-imported from " + path); expected.setImportedFrom(path); expected.setShared(true); expected.setId(23); assertTrue("\n" + ToStringBuilder.reflectionToString(actual.getValue()) + "\n\n did not equal \n\n" + ToStringBuilder.reflectionToString(expected), EqualsBuilder.reflectionEquals(actual.getValue(), expected, "created", "changed")); List<MediaFile> mediaFiles = medias.getValue(); assertEquals(3, mediaFiles.size()); }
@Override public String toString() { return new ToStringBuilder(this, CustomToStringStyle.SHORT_STYLE) .append("column", column) .append("row", row) .toString(); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }