本文整理汇总了Java中org.apache.commons.lang3.builder.ToStringBuilder类的典型用法代码示例。如果您正苦于以下问题:Java ToStringBuilder类的具体用法?Java ToStringBuilder怎么用?Java ToStringBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToStringBuilder类属于org.apache.commons.lang3.builder包,在下文中一共展示了ToStringBuilder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFromJson
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Test
public void testFromJson() {
String json = "{\r\n" +
" \"kf_online_list\": [\r\n" +
" {\r\n" +
" \"kf_account\": \"[email protected]\", \r\n" +
" \"status\": 1, \r\n" +
" \"kf_id\": \"1001\", \r\n" +
" \"auto_accept\": 0, \r\n" +
" \"accepted_case\": 1\r\n" +
" },\r\n" +
" {\r\n" +
" \"kf_account\": \"[email protected]\", \r\n" +
" \"status\": 1, \r\n" +
" \"kf_id\": \"1002\", \r\n" +
" \"auto_accept\": 0, \r\n" +
" \"accepted_case\": 2\r\n" +
" }\r\n" +
" ]\r\n" +
"}";
WxMpKfOnlineList wxMpKfOnlineList = WxMpKfOnlineList.fromJson(json);
Assert.assertNotNull(wxMpKfOnlineList);
System.err.println(ToStringBuilder.reflectionToString(wxMpKfOnlineList));
}
示例2: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
示例3: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
/**
* 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();
}
示例4: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
示例5: getCurrentTaskInfo
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
/**
* 获取当前节点信息
*
* @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;
}
示例6: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this)
.appendSuper(super.toString())
.append("allowedAttributes", allowedAttributes)
.toString();
}
示例7: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this)
.appendSuper(super.toString())
.append("startingDateTime", startingDateTime)
.append("endingDateTime", endingDateTime)
.toString();
}
示例8: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
示例9: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.appendSuper(super.toString())
.append("crdtId", getCrdtId())
.append("element", element)
.toString();
}
示例10: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
示例11: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return new ToStringBuilder(this)
.append("username", username)
.toString();
}
示例12: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
开发者ID:yuweijun,项目名称:cas-server-4.2.1,代码行数:10,代码来源:AbstractThrottledSubmissionHandlerInterceptorAdapter.java
示例13: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this)
.append("ticketId", ticketId)
.append("service", service)
.append("status", status)
.toString();
}
示例14: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@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();
}
示例15: toString
import org.apache.commons.lang3.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this)
.append("value", value)
.append("clock", clock)
.toString();
}