當前位置: 首頁>>代碼示例>>Java>>正文


Java ToStringStyle類代碼示例

本文整理匯總了Java中org.apache.commons.lang3.builder.ToStringStyle的典型用法代碼示例。如果您正苦於以下問題:Java ToStringStyle類的具體用法?Java ToStringStyle怎麽用?Java ToStringStyle使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ToStringStyle類屬於org.apache.commons.lang3.builder包,在下文中一共展示了ToStringStyle類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(null, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("id", this.id);
    toStringBuilder.append("name", this.name);
    toStringBuilder.append("description", this.description);
    toStringBuilder.append("serviceId", this.serviceId);
    toStringBuilder.append("usernameAttributeProvider", this.usernameAttributeProvider);
    toStringBuilder.append("theme", this.theme);
    toStringBuilder.append("evaluationOrder", this.evaluationOrder);
    toStringBuilder.append("logoutType", this.logoutType);
    toStringBuilder.append("attributeReleasePolicy", this.attributeReleasePolicy);
    toStringBuilder.append("accessStrategy", this.accessStrategy);
    toStringBuilder.append("publicKey", this.publicKey);
    toStringBuilder.append("proxyPolicy", this.proxyPolicy);
    toStringBuilder.append("logo", this.logo);
    toStringBuilder.append("logoutUrl", this.logoutUrl);
    toStringBuilder.append("requiredHandlers", this.requiredHandlers);
    toStringBuilder.append("properties", this.properties);

    return toStringBuilder.toString();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:23,代碼來源:AbstractRegisteredService.java

示例2: doGetAuthenticationInfo

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
	protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
		//UsernamePasswordToken對象用來存放提交的登錄信息
        UsernamePasswordToken token=(UsernamePasswordToken) authenticationToken;

        log.info("驗證當前Subject時獲取到token為:" + ReflectionToStringBuilder.toString(token, ToStringStyle.MULTI_LINE_STYLE)); 
//        return new SimpleAuthenticationInfo("hsjhsj","8e24137dee97c9bbddb9a0cd6e043be4" , getName());
        return new SimpleAuthenticationInfo("hsjhsj","" , getName());
        //查出是否有此用戶
//        TbUser user=null;
//        if(user!=null){
            // 若存在,將此用戶存放到登錄認證info中,無需自己做密碼對比,Shiro會為我們進行密碼對比校驗
//            return new SimpleAuthenticationInfo(user.getUsername(), , getName());
//        }
//        return null;
	}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:17,代碼來源:ShiroRealm.java

示例3: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的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();

}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:21,代碼來源:WsFederationCredential.java

示例4: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    final ToStringBuilder toStringBuilder = new ToStringBuilder(null, ToStringStyle.SHORT_PREFIX_STYLE);
    toStringBuilder.append("id", this.id);
    toStringBuilder.append("name", this.name);
    toStringBuilder.append("description", this.description);
    toStringBuilder.append("serviceId", this.serviceId);
    toStringBuilder.append("usernameAttributeProvider", this.usernameAttributeProvider);
    toStringBuilder.append("theme", this.theme);
    toStringBuilder.append("evaluationOrder", this.evaluationOrder);
    toStringBuilder.append("logoutType", this.logoutType);
    toStringBuilder.append("attributeReleasePolicy", this.attributeReleasePolicy);
    toStringBuilder.append("accessStrategy", this.accessStrategy);
    toStringBuilder.append("publicKey", this.publicKey);
    toStringBuilder.append("proxyPolicy", this.proxyPolicy);
    toStringBuilder.append("logo", this.logo);
    toStringBuilder.append("logoutUrl", this.logoutUrl);
    toStringBuilder.append("requiredHandlers", this.requiredHandlers);
    toStringBuilder.append("properties", this.properties);
    toStringBuilder.append("multifactorPolicy", this.multifactorPolicy);
    toStringBuilder.append("informationUrl", this.informationUrl);
    toStringBuilder.append("privacyUrl", this.privacyUrl);
    return toStringBuilder.toString();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:25,代碼來源:AbstractRegisteredService.java

示例5: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的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();
}
 
開發者ID:goldmansachs,項目名稱:obevo,代碼行數:12,代碼來源:FieldCompareBreak.java

示例6: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
            .appendSuper(super.toString())
            .append("file", file)
            .toString();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:8,代碼來源:CasConfigurationDeletedEvent.java

示例7: doBatch

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public int[] doBatch(final SqlContext sqlContext, final PreparedStatement preparedStatement, final int[] result) {
	String userName = getParam(sqlContext, USER_NAME_KEY);
	if (userName == null) {
		// ユーザ名が設定されていない時
		userName = DEFAULT_USER_NAME;
	}

	String funcId = getParam(sqlContext, FUNC_ID_KEY);
	if (funcId == null) {
		// 機能IDが設定されていない時
		funcId = DEFAULT_FUNC_ID;
	}
	int rowCount = -1;
	if (LOG.isDebugEnabled()) {
		try {
			rowCount = preparedStatement.getUpdateCount();
		} catch (SQLException ex) {
			// ここでの例外は実処理に影響を及ぼさないよう握りつぶす
		}
	}
	LOG.debug(ToStringBuilder.reflectionToString(
			new AuditData(userName, funcId, sqlContext.getSqlId(), sqlContext.getSqlName(), sqlContext
					.getExecutableSql(), rowCount), ToStringStyle.JSON_STYLE));

	return result;
}
 
開發者ID:future-architect,項目名稱:uroborosql,代碼行數:28,代碼來源:AuditLogSqlFilter.java

示例8: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .appendSuper(super.toString())
            .append("crdtId", getCrdtId())
            .append("element", element)
            .toString();
}
 
開發者ID:netopyr,項目名稱:wurmloch-crdt,代碼行數:9,代碼來源:USet.java

示例9: modelBaseRecordClassGenerated

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public boolean modelBaseRecordClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
    Method method = new Method("toString");
    method.setReturnType(new FullyQualifiedJavaType(String.class.getCanonicalName()));
    method.setVisibility(JavaVisibility.PUBLIC);
    method.addAnnotation("@Override");
    method.addBodyLine("return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);");
    topLevelClass.addImportedType(new FullyQualifiedJavaType(ToStringBuilder.class.getCanonicalName()));
    topLevelClass.addImportedType(new FullyQualifiedJavaType(ToStringStyle.class.getCanonicalName()));
    topLevelClass.addMethod(method);
    return topLevelClassComment(topLevelClass, introspectedTable, true);
}
 
開發者ID:yinheli,項目名稱:mybatis-generator-tool,代碼行數:13,代碼來源:CommentPlugin.java

示例10: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的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();
}
 
開發者ID:psd2-in-a-box,項目名稱:mid-tier,代碼行數:11,代碼來源:Event.java

示例11: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("objectCompareBreakSide", objectCompareBreakSide)
            .append("compareSubject", getCompareSubject())
            .toString();
}
 
開發者ID:goldmansachs,項目名稱:obevo,代碼行數:8,代碼來源:ObjectCompareBreak.java

示例12: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("name", name)
            .append("schema", schema)
            .toString();
}
 
開發者ID:goldmansachs,項目名稱:obevo,代碼行數:8,代碼來源:DaPackagePojoImpl.java

示例13: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("dn", dn)
            .append("userName", userName)
            .append("fullName", fullName)
            .append("email", email)
            .toString();
}
 
開發者ID:klenkes74,項目名稱:openshift-ldapsync,代碼行數:10,代碼來源:User.java

示例14: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
	return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).
       append("email", email).
       append("timestamp", timestamp).
       append("token", token).
       toString();
}
 
開發者ID:xtianus,項目名稱:yadaframework,代碼行數:9,代碼來源:YadaRegistrationRequest.java

示例15: toString

import org.apache.commons.lang3.builder.ToStringStyle; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("firstName", firstName)
            .append("lastName", lastName)
            .toString();
}
 
開發者ID:sbouclier,項目名稱:java-rest-books,代碼行數:8,代碼來源:Author.java


注:本文中的org.apache.commons.lang3.builder.ToStringStyle類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。