当前位置: 首页>>代码示例>>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;未经允许,请勿转载。