Search in sources :

Example 66 with ToStringBuilder

use of org.apache.commons.lang3.builder.ToStringBuilder in project xwiki-platform by xwiki.

the class MailStatus method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("messageId", getMessageId());
    builder.append("batchId", getBatchId());
    builder.append("state", getState());
    builder.append("date", getDate());
    builder.append("recipients", getRecipients());
    if (getType() != null) {
        builder.append("type", getType());
    }
    if (getErrorSummary() != null) {
        builder.append("errorSummary", getErrorSummary());
    }
    if (getErrorDescription() != null) {
        builder.append("errorDescription", getErrorDescription());
    }
    if (getWiki() != null) {
        builder.append("wiki", getWiki());
    }
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 67 with ToStringBuilder

use of org.apache.commons.lang3.builder.ToStringBuilder in project xwiki-platform by xwiki.

the class EntityResourceReference method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.appendSuper(super.toString());
    builder.append("reference", getEntityReference());
    builder.append("action", getAction());
    builder.append("locale", getLocale());
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 68 with ToStringBuilder

use of org.apache.commons.lang3.builder.ToStringBuilder in project xwiki-platform by xwiki.

the class AbstractResourceReference method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("type", getType());
    builder.append("parameters", getParameters());
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 69 with ToStringBuilder

use of org.apache.commons.lang3.builder.ToStringBuilder in project incubator-myriad by apache.

the class NMProfileManager method toString.

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.JSON_STYLE);
    for (Map.Entry<String, NMProfile> profile : profiles.entrySet()) {
        NMProfile value = profile.getValue();
        builder.append("name", value.getName());
        builder.append("cpus", value.getCpus());
        builder.append("memory", value.getMemory());
    }
    return builder.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) Map(java.util.Map) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap)

Example 70 with ToStringBuilder

use of org.apache.commons.lang3.builder.ToStringBuilder in project spring-roo by spring-projects.

the class JpaDataOnDemandConfigurationMetadata method toString.

@Override
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();
}
Also used : ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder)

Aggregations

ToStringBuilder (org.apache.commons.lang3.builder.ToStringBuilder)109 Person (org.apache.commons.lang3.builder.ToStringStyleTest.Person)10 Test (org.junit.Test)10 XWikiToStringBuilder (org.xwiki.text.XWikiToStringBuilder)7 Date (java.util.Date)3 Map (java.util.Map)3 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Optional (java.util.Optional)2 Set (java.util.Set)2 Slf4j (lombok.extern.slf4j.Slf4j)2 StringUtils (org.apache.commons.lang3.StringUtils)2 ToStringStyle (org.apache.commons.lang3.builder.ToStringStyle)2 Pair (org.apache.commons.lang3.tuple.Pair)2 Level (org.apache.logging.log4j.Level)2 LoggerContext (org.apache.logging.log4j.core.LoggerContext)2 FileAppender (org.apache.logging.log4j.core.appender.FileAppender)2 MemoryMappedFileAppender (org.apache.logging.log4j.core.appender.MemoryMappedFileAppender)2 RandomAccessFileAppender (org.apache.logging.log4j.core.appender.RandomAccessFileAppender)2 RollingFileAppender (org.apache.logging.log4j.core.appender.RollingFileAppender)2