本文整理匯總了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);
}