Java Code Examples for org.apache.commons.lang3.builder.ToStringBuilder
The following examples show how to use
org.apache.commons.lang3.builder.ToStringBuilder. These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: riiablo Source File: DCC.java License: Apache License 2.0 | 6 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("outsizeCoded", outsizeCoded) .append("compressionFlags", getFlags()) .append("variable0Bits", variable0Bits) .append("widthBits", widthBits) .append("heightBits", heightBits) .append("xOffsetBits", xOffsetBits) .append("yOffsetBits", yOffsetBits) .append("optionalBytesBits", optionalBytesBits) .append("codedBytesBits", codedBytesBits) //.append("pixelBufferCellsX", pixelBufferCellsX) //.append("pixelBufferCellsY", pixelBufferCellsY) .append("box", box) .build(); }
Example 2
Source Project: ldap-in-memory Source File: LdapServerImpl.java License: Apache License 2.0 | 6 votes |
/** * Loads entries (non-attribute entries) as specified in the configuration file. * * @throws Exception */ protected void loadEntries() throws Exception { LOG.info(">>>LdapServerImpl.loadEntries()"); if (configuration.getEntries() != null && configuration.getEntries().size() > 0) { for (org.slc.sli.ldap.inmemory.domain.Entry configEntry : configuration.getEntries()) { LOG.info(" creating entry."); final String attributeName = "objectClass"; final Collection<String> attributeValues = new ArrayList<String>(); for (String name : configEntry.getObjectClasses()) { attributeValues.add(name); } Entry en = new Entry(new DN(configEntry.getObjectDn())); en.addAttribute(attributeName, attributeValues); this.server.add(en); LOG.info(" Added entry: {}", ToStringBuilder.reflectionToString(en, ToStringStyle.MULTI_LINE_STYLE)); } } LOG.info("<<<LdapServerImpl.loadEntries()"); }
Example 3
Source Project: LuckyFrameWeb Source File: ProjectCase.java License: GNU Affero General Public License v3.0 | 6 votes |
public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("caseId", getCaseId()) .append("caseSerialNumber", getCaseSerialNumber()) .append("caseSign", getCaseSign()) .append("caseName", getCaseName()) .append("projectId", getProjectId()) .append("moduleId", getModuleId()) .append("caseType", getCaseType()) .append("failcontinue", getFailcontinue()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) .append("remark", getRemark()) .append("project", getProject()) .append("projectCaseModule", getProjectCaseModule()) .toString(); }
Example 4
Source Project: elasticsearch-maven-plugin Source File: ClusterConfiguration.java License: Apache License 2.0 | 6 votes |
public String toString() { return new ToStringBuilder(this) .append("flavour", flavour) .append("version", version) .append("downloadUrl", downloadUrl) .append("downloadUrlUsername", downloadUrlUsername) .append("downloadUrlPassword", Optional.ofNullable(downloadUrlPassword).map(p -> "****").orElse(null)) .append("clusterName", clusterName) .append("pathConfigFile", pathConf) .append("plugins", plugins) .append("pathInitScripts", pathInitScripts) .append("keepExistingData", keepExistingData) .append("timeout", timeout) .append("clientSocketTimeout", clientSocketTimeout) .append("setAwait", setAwait) .append("autoCreateIndex", autoCreateIndex) .append("instanceConfigurationList", StringUtils.join(instanceConfigurationList, ',')) .toString(); }
Example 5
Source Project: LuckyFrameClient Source File: ProjectCaseSteps.java License: GNU Affero General Public License v3.0 | 6 votes |
@Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("stepId", getStepId()) .append("caseId", getCaseId()) .append("projectId", getProjectId()) .append("stepSerialNumber", getStepSerialNumber()) .append("stepPath", getStepPath()) .append("stepOperation", getStepOperation()) .append("stepParameters", getStepParameters()) .append("action", getAction()) .append("expectedResult", getExpectedResult()) .append("stepType", getStepType()) .append("extend", getExtend()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) .toString(); }
Example 6
Source Project: sailfish-core Source File: ITCHSession.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this). appendSuper(super.toString()). append("seqNum", seqnum). append("marketDataGroup", marketDataGroup). toString(); }
Example 7
Source Project: MultimediaDesktop Source File: MailMessage.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
Example 8
Source Project: cia Source File: AgainstProposalData.java License: Apache License 2.0 | 5 votes |
@Override public final String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
Example 9
Source Project: jpa-unit Source File: Edge.java License: Apache License 2.0 | 5 votes |
public String asString() { final ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("id", getId()); builder.append("labels", getLabels()); builder.append("from", from); builder.append("to", to); builder.append("attributes", getAttributes()); return builder.build(); }
Example 10
Source Project: iaf Source File: XmlTypeToJsonSchemaConverter.java License: Apache License 2.0 | 5 votes |
private void handleSimpleTypeDefinition(XSTypeDefinition typeDefinition, JsonObjectBuilder builder){ XSSimpleTypeDefinition simpleTypeDefinition = (XSSimpleTypeDefinition)typeDefinition; if (log.isTraceEnabled()) log.trace("typeDefinition.name ["+typeDefinition.getName()+"]"); if (log.isTraceEnabled()) log.trace("simpleTypeDefinition.getBuiltInKind ["+simpleTypeDefinition.getBuiltInKind()+"]"); if (log.isTraceEnabled()) log.trace(ToStringBuilder.reflectionToString(typeDefinition,ToStringStyle.MULTI_LINE_STYLE)); short builtInKind = simpleTypeDefinition.getBuiltInKind(); String dataType = getJsonDataType(builtInKind); if (dataType.equalsIgnoreCase("integer") || dataType.equalsIgnoreCase("number")) { builder.add("type", dataType.toLowerCase()); applyFacet(simpleTypeDefinition, builder, "maximum", XSSimpleTypeDefinition.FACET_MAXINCLUSIVE); applyFacet(simpleTypeDefinition, builder, "minimum", XSSimpleTypeDefinition.FACET_MININCLUSIVE); applyFacet(simpleTypeDefinition, builder, "exclusiveMaximum", XSSimpleTypeDefinition.FACET_MAXEXCLUSIVE); applyFacet(simpleTypeDefinition, builder, "exclusiveMinimum", XSSimpleTypeDefinition.FACET_MINEXCLUSIVE); applyFacet(simpleTypeDefinition, builder, "enum", XSSimpleTypeDefinition.FACET_ENUMERATION); } else if (dataType.equalsIgnoreCase("boolean")) { builder.add("type", "boolean"); } else if (dataType.equalsIgnoreCase("string")) { builder.add("type", "string"); applyFacet(simpleTypeDefinition, builder, "maxLength", XSSimpleTypeDefinition.FACET_MAXLENGTH); applyFacet(simpleTypeDefinition, builder, "minLength", XSSimpleTypeDefinition.FACET_MINLENGTH); applyFacet(simpleTypeDefinition, builder, "pattern", XSSimpleTypeDefinition.FACET_PATTERN); applyFacet(simpleTypeDefinition, builder, "enum", XSSimpleTypeDefinition.FACET_ENUMERATION); } else if (dataType.equalsIgnoreCase("date") || dataType.equalsIgnoreCase("date-time") || dataType.equalsIgnoreCase("time")) { builder.add("type", "string"); builder.add("format", dataType); applyFacet(simpleTypeDefinition, builder, "pattern", XSSimpleTypeDefinition.FACET_PATTERN); applyFacet(simpleTypeDefinition, builder, "enum", XSSimpleTypeDefinition.FACET_ENUMERATION); } }
Example 11
Source Project: td-ameritrade-client Source File: MarginInitialBalances.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) .append("accruedInterest", accruedInterest) .append("availableFundsNonMarginableTrade", availableFundsNonMarginableTrade) .append("bondValue", bondValue) .append("buyingPower", buyingPower) .append("cashBalance", cashBalance) .append("cashAvailableForTrading", cashAvailableForTrading) .append("cashReceipts", cashReceipts) .append("dayTradingBuyingPower", dayTradingBuyingPower) .append("dayTradingBuyingPowerCall", dayTradingBuyingPowerCall) .append("dayTradingEquityCall", dayTradingEquityCall) .append("equity", equity) .append("equityPercentage", equityPercentage) .append("liquidationValue", liquidationValue) .append("longMarginValue", longMarginValue) .append("longOptionMarketValue", longOptionMarketValue) .append("longStockValue", longStockValue) .append("maintenanceCall", maintenanceCall) .append("maintenanceRequirement", maintenanceRequirement) .append("margin", margin) .append("marginEquity", marginEquity) .append("moneyMarketFund", moneyMarketFund) .append("mutualFundValue", mutualFundValue) .append("regTCall", regTCall) .append("shortMarginValue", shortMarginValue) .append("shortOptionMarketValue", shortOptionMarketValue) .append("shortStockValue", shortStockValue) .append("totalCash", totalCash) .append("isInCall", isInCall) .append("unsettledCash", unsettledCash) .append("pendingDeposits", pendingDeposits) .append("marginBalance", marginBalance) .append("shortBalance", shortBalance) .append("accountValue", accountValue) .append("otherFields", otherFields) .toString(); }
Example 12
Source Project: xmfcn-spring-cloud Source File: UserPrize.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("type", type) .append("name", name) .append("imgUrl", imgUrl) .toString(); }
Example 13
Source Project: xmfcn-spring-cloud Source File: Comment.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("openId", openId) .append("type", type) .append("content", content) .append("photoUrl", photoUrl) .append("nickName", nickName) .append("bizId", bizId) .toString(); }
Example 14
Source Project: riiablo Source File: DT1.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("x", x) .append("y", y) //.append("zeros1", Arrays.toString(zeros1)) .append("gridX", gridX) .append("gridY", gridY) .append("format", format) .append("length", length) //.append("zeros2", Arrays.toString(zeros2)) .append("fileOffset", "0x" + Integer.toHexString(fileOffset)) .toString(); }
Example 15
Source Project: jadira Source File: JVariable.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("name", this.getName()); builder.append("type", this.getType()); builder.append("enclosingType", this.getEnclosingType()); return builder.toString(); }
Example 16
Source Project: sakai Source File: GradableObject.java License: Educational Community License v2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("id", this.id) .append("name", this.name) .append("sort", this.sortOrder) .toString(); }
Example 17
Source Project: java-sdk Source File: OrderBook.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this, BinanceDexConstants.BINANCE_DEX_TO_STRING_STYLE) .append("asks", asks) .append("bids", bids) .append("height", height) .append("pendingMatch", pendingMatch) .toString(); }
Example 18
Source Project: LuckyFrameWeb Source File: ProjectCaseDebug.java License: GNU Affero General Public License v3.0 | 5 votes |
public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("debugId", getDebugId()) .append("caseId", getCaseId()) .append("userId", getUserId()) .append("debugIsend", getDebugIsend()) .append("logLevel", getLogLevel()) .append("logDetail", getLogDetail()) .toString(); }
Example 19
Source Project: youran Source File: ProgressVO.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.JSON_STYLE) .append("sessionId", sessionId) .append("status", status) .append("percentage", percentage) .append("msg", msg) .toString(); }
Example 20
Source Project: gvnix Source File: JpaAuditUserServiceMetadata.java License: GNU General Public License v3.0 | 5 votes |
public String toString() { final ToStringBuilder builder = new ToStringBuilder(this); builder.append("identifier", getId()); builder.append("valid", valid); builder.append("aspectName", aspectName); builder.append("destinationType", destination); builder.append("governor", governorPhysicalTypeMetadata.getId()); builder.append("itdTypeDetails", itdTypeDetails); return builder.toString(); }
Example 21
Source Project: hibernate-master-class Source File: HibernateApiMultiEagerCollectionFetchStrategyTest.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this); tsb.append("id", id); tsb.append("type", type); tsb.append("image", image); return tsb.toString(); }
Example 22
Source Project: syncope Source File: GoogleMfaAuthAccount.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("key", key) .append("secretKey", secretKey) .append("owner", owner) .append("scratchCodes", scratchCodes) .append("registrationDate", registrationDate) .append("validationCode", validationCode) .toString(); }
Example 23
Source Project: obevo Source File: Change.java License: Apache License 2.0 | 5 votes |
ToStringBuilder toStringBuilder() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append(this.getSchema()) .append(this.getChangeName()) .append(this.getObjectName()) .append(this.getChangeType()) .append(this.getConvertedContent()) .append(this.getContentHash()) .append(this.getOrderWithinObject()) ; }
Example 24
Source Project: zheshiyigeniubidexiangmu Source File: DepositAddress.java License: MIT License | 5 votes |
@Override public String toString() { return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE) .append("address", address) .append("success", success) .append("addressTag", addressTag) .append("asset", asset) .toString(); }
Example 25
Source Project: VocabHunter Source File: FilterSessionWord.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("wordIdentifier", wordIdentifier) .append("state", state) .toString(); }
Example 26
Source Project: async-gamequery-lib Source File: StoreAppReleaseDateInfo.java License: MIT License | 5 votes |
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE) .append("comingSoon", isComingSoon()) .append("releaseDate", getReleaseDate()) .toString(); }
Example 27
Source Project: sailfish-core Source File: Verification.java License: Apache License 2.0 | 5 votes |
@Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("statusDescription", statusDescription); builder.append("parameters", parameters.size()); return builder.toString(); }
Example 28
Source Project: openemm Source File: WorkflowReminder.java License: GNU Affero General Public License v3.0 | 5 votes |
@Override public String toString() { return new ToStringBuilder(this) .append("recipients", recipients) .append("senderAdminId", senderAdminId) .append("type", type) .append("message", message) .append("date", date) .toString(); }
Example 29
Source Project: java-master Source File: SimpleExampleBean.java License: Apache License 2.0 | 4 votes |
@Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE); }
Example 30
Source Project: jackcess Source File: CustomToStringStyle.java License: Apache License 2.0 | 4 votes |
public static ToStringBuilder valueBuilder(Object obj) { return new ToStringBuilder(obj, VALUE_INSTANCE); }