本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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());
}
示例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();
}
示例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();
}
示例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));
}
}
示例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();
}
示例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();
}
示例13: toString
import org.apache.commons.lang.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return new ToStringBuilder(this).append("activityId", getActivityId()).toString();
}
示例14: toString
import org.apache.commons.lang.builder.ToStringBuilder; //导入依赖的package包/类
public String toString() {
return ToStringBuilder.reflectionToString(this, OtterToStringStyle.DEFAULT_STYLE);
}
示例15: toString
import org.apache.commons.lang.builder.ToStringBuilder; //导入依赖的package包/类
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}