Java 类org.apache.commons.lang3.builder.ToStringBuilder 实例源码

项目:OperatieBRP    文件:Lo3Mutaties.java   
@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();
}
项目:springboot-shiro-cas-mybatis    文件:WsFederationCredential.java   
/**
 * 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();

}
项目:cas-5.1.0    文件:WSFederationRequest.java   
@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();
}
项目:microservice    文件:WorkflowTraceService.java   
/**
 * 获取当前节点信息
 *
 * @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;
}
项目:cas-server-4.2.1    文件:ReturnMappedAttributeReleasePolicy.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("allowedAttributes", allowedAttributes)
            .toString();
}
项目:cas-server-4.2.1    文件:TimeBasedRegisteredServiceAccessStrategy.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("startingDateTime", startingDateTime)
            .append("endingDateTime", endingDateTime)
            .toString();
}
项目:obevo    文件:FieldCompareBreak.java   
@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();
}
项目:wurmloch-crdt    文件:USet.java   
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .appendSuper(super.toString())
            .append("crdtId", getCrdtId())
            .append("element", element)
            .toString();
}
项目:cas-5.1.0    文件:DefaultRegisteredServiceMultifactorPolicy.java   
@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();
}
项目:role-api    文件:User.java   
/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("username", username)
            .toString();
}
项目:cas-server-4.2.1    文件:AbstractThrottledSubmissionHandlerInterceptorAdapter.java   
@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();
}
项目:springboot-shiro-cas-mybatis    文件:DefaultLogoutRequest.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("ticketId", ticketId)
            .append("service", service)
            .append("status", status)
            .toString();
}
项目:springboot-shiro-cas-mybatis    文件:AbstractThrottledSubmissionHandlerInterceptorAdapter.java   
@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();
}
项目:mid-tier    文件:Event.java   
@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();
}
项目:wurmloch-crdt    文件:MVRegister.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("value", value)
            .append("clock", clock)
            .toString();
}
项目:gamesboard    文件:RegistrationForm.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("email", email)
            .append("firstName", firstName)
            .append("lastName", lastName)
            .append("signInProvider", signInProvider)
            .toString();
}
项目:datax    文件:Configuration.java   
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));
}
项目:springboot-shiro-cas-mybatis    文件:CasProxyTicketGrantedEvent.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("proxyGrantingTicket", proxyGrantingTicket)
            .append("proxyTicket", proxyTicket)
            .toString();
}
项目:sponge    文件:MidiMetaMessageEvent.java   
@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
}
项目:datax    文件:RangeSplitUtilTest.java   
@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));

    }
项目:obevo    文件:CodeDependency.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("target", target)
            .append("codeDependencyType", codeDependencyType)
            .toString();
}
项目:springboot-shiro-cas-mybatis    文件:CachingPrincipalAttributesRepository.java   
@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();
}
项目:yadaframework    文件:YadaRegistrationRequest.java   
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).
       append("email", email).
       append("timestamp", timestamp).
       append("token", token).
       toString();
}
项目:springboot-shiro-cas-mybatis    文件:RegisteredServicePublicKeyImpl.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("location", this.location)
            .append("algorithm", this.algorithm)
            .toString();
}
项目:springboot-shiro-cas-mybatis    文件:ReturnAllowedAttributeReleasePolicy.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("allowedAttributes", allowedAttributes)
            .toString();
}
项目:rskj    文件:PeerDiscoveryMessage.java   
@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();
}
项目:yaess    文件:CustomerDeletedEvent.java   
@Override
public String toString() {

    return new ToStringBuilder(this)
        .append("customerId", rootAggregateId)
        .append("eventId", eventId)
        .append("created", created)
        .toString();
}
项目:java-rest-books    文件:Book.java   
@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();
}
项目:springboot-shiro-cas-mybatis    文件:OAuthRegisteredService.java   
@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();
}
项目:cas-5.1.0    文件:RadiusClientFactory.java   
@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();
}
项目:rskj    文件:PingPeerMessage.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append(this.host)
            .append(this.port)
            .append(this.messageId).toString();
}
项目:hippo    文件:SearchResultWidget.java   
@Override
public String toString() {
    return new ToStringBuilder(this)
        .append("type", getType())
        .append("title", getTitle())
        .append("date", getDate())
        .append("summary", getSummary())
        .toString();
}
项目:Ink    文件:Route.java   
@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();
}
项目:mid-tier    文件:Event.java   
@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();
}
项目:artemis-disruptor-miaosha    文件:RequestDto.java   
@Override
public String toString() {
  return new ToStringBuilder(this)
      .append("id", id)
      .append("itemId", itemId)
      .append("userId", userId)
      .toString();
}
项目:cas-5.1.0    文件:MultifactorAuthenticationTrustRecord.java   
@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();
}
项目:airsonic    文件:PlaylistServiceTestImport.java   
@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());
}
项目:brick-pop-solver    文件:Coordinate.java   
@Override
public String toString() {
    return new ToStringBuilder(this, CustomToStringStyle.SHORT_STYLE)
        .append("column", column)
        .append("row", row)
        .toString();
}
项目:Homework    文件:Master.java   
@Override
public String toString()
{
    return ToStringBuilder.reflectionToString(this);
}