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


Java ToStringBuilder類代碼示例

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


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

示例1: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
    public String toString() {
	return new ToStringBuilder(this).append("activityInstructions: ", activityInstructions)
		.append("activityTitle: ", activityTitle).append("revisitingUser: ", revisitingUser)
		.append("userEntry: ", userEntry).append("castVoteCount: ", castVoteCount)
		.append("maxNominationCountReached: ", maxNominationCountReached).append("learningMode: ", learningMode)
		.append("maxNominationCount: ", maxNominationCount).append("allowTextEntry: ", allowTextEntry)
		.append("showResults: ", showResults).append("lockOnFinish: ", lockOnFinish)
		.append("toolContentID: ", toolContentID).append("toolContentUID: ", toolContentUID)
		.append("requestLearningReport: ", requestLearningReport)
		.append("requestLearningReportProgress: ", requestLearningReportProgress)
		.append("nominationsSubmited: ", nominationsSubmited)
		.append("mapGeneralCheckedOptionsContent: ", mapGeneralCheckedOptionsContent)
		.append("mapStandardNominationsContent: ", mapStandardNominationsContent)
		.append("mapStandardNominationsHTMLedContent: ", mapStandardNominationsHTMLedContent)
		.append("mapStandardRatesContent: ", mapStandardRatesContent)
		.append("mapStandardUserCount: ", mapStandardUserCount)
		.append("mapStandardQuestionUid: ", mapStandardQuestionUid)
		.append("mapStandardToolSessionUid: ", mapStandardToolSessionUid)
//		.append("listMonitoredAnswersContainerDto: ", listMonitoredAnswersContainerDto)
		.append("listUserEntries: ", listUserEntries).append("reportViewOnly: ", reportViewOnly).toString();
    }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:23,代碼來源:VoteGeneralLearnerFlowDTO.java

示例2: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
   public String toString() {
return new ToStringBuilder(this).append("userID", getUserID()).append("firstName", getFirstName())
	.append("lastName", getLastName()).append("login", getLogin())
	.append("localeLanguage", getLocaleLanguage()).append("localeCountry", getLocaleCountry())
	.append("direction", getDirection()).append("email", getEmail()).append("htmlTheme", getTheme())
	.append("timeZone", getTimeZone()).append("authenticationMethodId", getAuthenticationMethodId())
	.append("fckLanguageMapping", getFckLanguageMapping())
	.append("tutorialsDisabled", "" + getTutorialsDisabled()).toString();
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:11,代碼來源:UserDTO.java

示例3: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
   public String toString() {
return new ToStringBuilder(this).append("localeId", getLocaleId())
	.append("languageIsoCode", getLanguageIsoCode()).append("countryIsoCode", getCountryIsoCode())
	.append("description", getDescription()).append("direction", getDirection())
	.append("fckLanguageMapping", getFckLanguageMapping()).toString();
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:8,代碼來源:SupportedLocale.java

示例4: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
public String toString() {
	return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
			.append("PostId", getPostId())
			.append("PostName", getPostName())
			.append("Remark", getRemark())
			.append("PostType", getPostType())
			.append("ParentPostid", getParentPostid()).toString();
}
 
開發者ID:zhangjunfang,項目名稱:jta-atomikos,代碼行數:9,代碼來源:TsysPost.java

示例5: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("order", order)
            .append("fields", fields)
            .toString();
}
 
開發者ID:mapr-demos,項目名稱:mapr-music,代碼行數:8,代碼來源:SortOption.java

示例6: toString

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

示例7: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString()
{
    return(new ToStringBuilder(this)
           .append("contentFile", (contentFileExists ? contentFile : null))
           .append("metadatafile", metadataFile)
           .toString());
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:9,代碼來源:ImportableItem.java

示例8: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this);
    builder.appendSuper(super.toString());
    builder.append("clientId", getClientId());
    return builder.toString();
}
 
開發者ID:luotuo,項目名稱:cas4.0.x-server-wechat,代碼行數:8,代碼來源:OAuthRegisteredService.java

示例9: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
   public String toString() {
return new ToStringBuilder(this).append("activityInstructions: ", activityInstructions)
	.append("activityTitle: ", activityTitle).append("revisitingUser: ", revisitingUser)
	.append("userEntry: ", userEntry).append("castVoteCount: ", castVoteCount)
	.append("maxNominationCountReached: ", maxNominationCountReached)
	.append("toolSessionID: ", toolSessionID).append("learningMode: ", learningMode)
	.append("toolContentID: ", toolContentID).append("nominationsSubmited: ", nominationsSubmited)
	.append("toolContentUID: ", toolContentUID).append("previewOnly: ", previewOnly)
	.append("reportViewOnly: ", reportViewOnly)
	.append("mapGeneralCheckedOptionsContent: ", mapGeneralCheckedOptionsContent).toString();
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:13,代碼來源:VoteLearningForm.java

示例10: parseContentBodyRow

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
/**
 * Method parses a row of the body content and puts the related entry into the result list (entries).
 * If the row is invalid in any kind, no modification happens. If any of the parameters provided is null or invalid,
 * no modification happens.
 * 
 * @param entries the list of entries, where the result of the row should be put in
 * @param langKeys the language information to parse the row correctly
 * @param row the row to be processed.
 */
private void parseContentBodyRow(	List<MessageResourceEntry> entries,
									Map<Integer, Locale> langKeys,
									Row row,
									String type)
{
	if (entries == null || row == null || langKeys == null || langKeys.isEmpty())
	{
		return;
	}
	MessageResourceEntry entry = new MessageResourceEntry();
	String code = getCellStringValue(row.getCell(this.keyColumn));
	if (!StringUtils.isBlank(code))
	{
		entry.setCodeId(StringUtils.trim(code));
		for (int nameIndex = this.firstLanguageColumn; nameIndex <= langKeys.size(); nameIndex++)
		{
			Cell cell = row.getCell(nameIndex);
			String name = getCellStringValue(cell);
			if (!StringUtils.isBlank(name))
			{
				Locale lang = langKeys.get(nameIndex);
				entry.addLang(lang, name);
			}
		}
		if (entry.size() > 0)
		{
			entry.setType(type);
			entries.add(entry);
		}
	}
	if (LOG.isDebugEnabled())
	{
		LOG.debug(ToStringBuilder.reflectionToString(entry, ToStringStyle.SHORT_PREFIX_STYLE));
	}
}
 
開發者ID:namics,項目名稱:spring-i18n-support,代碼行數:45,代碼來源:ExcelReader.java

示例11: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
   public String toString() {
return new ToStringBuilder(this).append("retries: ", retries)
	.append("mapGeneralOptionsContent: ", mapGeneralOptionsContent).append("learnerMark : ", learnerMark)
	.append("totalQuestionCount: ", totalQuestionCount).append("passMark: ", passMark)
	.append("passMarkApplicable: ", passMarkApplicable).append("userPassed: ", userPassed)
	.append("userOverPassMark: ", userOverPassMark).append("reportTitleLearner: ", reportTitleLearner)
	.append("activityInstructions: ", activityInstructions).append("activityTitle: ", activityTitle)
	.append("displayAnswers: ", displayAnswers).append("reflection: ", reflection)
	.append("reflectionSubject: ", reflectionSubject).append("notebookEntry: ", notebookEntry)
	.append("notebookEntriesVisible: ", notebookEntriesVisible).toString();
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:13,代碼來源:McGeneralLearnerFlowDTO.java

示例12: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
public String toString() {
	return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
		.append("AppId",getAppId())
		.append("AppName",getAppName())
		.append("AppIcon",getAppIcon())
		.append("OrderNo",getOrderNo())
		.append("AppPath",getAppPath())
		.append("AppShortname",getAppShortname())
		.toString();
}
 
開發者ID:zhangjunfang,項目名稱:jta-atomikos,代碼行數:11,代碼來源:TsysApp.java

示例13: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
   public String toString() {
return new ToStringBuilder(this).append("activityId", getActivityId()).toString();
   }
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:5,代碼來源:GroupingActivity.java

示例14: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
public String toString() {
    return ToStringBuilder.reflectionToString(this, OtterToStringStyle.DEFAULT_STYLE);
}
 
開發者ID:luoyaogui,項目名稱:otter-G,代碼行數:4,代碼來源:AutoKeeperStat.java

示例15: toString

import org.apache.commons.lang.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
  return ToStringBuilder.reflectionToString(this);
}
 
開發者ID:networknt,項目名稱:light-tram-4j,代碼行數:5,代碼來源:ReplyDestination.java


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