Example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Prototype

ToStringStyle SHORT_PREFIX_STYLE

To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Click Source Link

Document

The short prefix toString style.

Usage

From source file:com.norconex.collector.core.data.store.impl.mongo.MongoConnectionDetails.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("port", port).append("host", host)
            .append("databaseName", databaseName).append("username", username).append("password", password)
            .toString();/*from  w ww . j ava  2s . c  om*/
}

From source file:com.textocat.textokit.eval.matching.FSFeatureMatcher.java

@Override
protected String toString(IdentityHashMap<Matcher<?>, Integer> idMap) {
    idMap.put(this, getNextId(idMap));
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("feature", feature)
            .append("valueMatcher", getToString(idMap, valueMatcher)).toString();
}

From source file:de.kaiserpfalzEdv.office.contacts.location.CountryDO.java

public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString())
            .append("iso2", iso2).append("iso3", iso3).append("cc", phoneCountryCode)
            .append("postal", postalPrefix).build();
}

From source file:com.norconex.committer.core.FileDeleteOperation.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    builder.append("reference", reference);
    builder.append("refFile", refFile);
    return builder.toString();
}

From source file:jpaworkshop.presentation.CompanyBean.java

private String convertResult(Object e) {
    if (e == null) {
        return "null";
    } else if (e instanceof Object[]) {
        Object[] row = (Object[]) e;
        StringBuilder builder = new StringBuilder();

        for (Object col : row) {
            builder.append(convertResult(col)).append(",");
        }/*from   w  ww . j ava  2  s.c om*/

        return builder.toString();
    } else {
        return ReflectionToStringBuilder.toString(e, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}

From source file:net.havox.times.model.times.impl.IssueImpl.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);

    builder.append(this.getId());
    builder.append(this.getDescription());
    builder.append(this.getStart());
    builder.append(this.getEnd());
    builder.append(this.getDuration());
    builder.append(this.getTasks());

    return builder.toString();
}

From source file:com.shaie.browze.model.Tree.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("label", label)
            .append("children", children).append("parent", parent).append("leaf", isLeaf).build();
}

From source file:com.norconex.collector.core.data.store.impl.mapdb.MapDBCrawlDataStoreFactory.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();
}

From source file:com.rjuarez.webapp.tools.ApiUrl.java

public URL buildUrl(final TheMovieDatabaseParameters params) {
    final StringBuilder urlString = new StringBuilder(TMDB_API_BASE);

    LOG.trace("Method: '{}', Sub-method: '{}', Params: {}", method.getValue(), submethod.getValue(),
            ToStringBuilder.reflectionToString(params, ToStringStyle.SHORT_PREFIX_STYLE));

    // Get the start of the URL, substituting TV for the season or episode
    // methods/*from   w  ww .ja  v  a2 s  .c om*/
    if (method == TheMovieDatabaseMethod.SEASON || method == TheMovieDatabaseMethod.EPISODE) {
        urlString.append(TheMovieDatabaseMethod.TV.getValue());
    } else {
        urlString.append(method.getValue());
    }

    // We have either a queury, or a ID request
    if (params.has(TheMovieDatabaseQueries.QUERY)) {
        urlString.append(queryProcessing(params));
    } else {
        urlString.append(idProcessing(params));
    }

    urlString.append(otherProcessing(params));

    try {
        LOG.trace("URL: {}", urlString.toString());
        return new URL(urlString.toString());
    } catch (final MalformedURLException ex) {
        LOG.warn("Failed to create URL {} - {}", urlString.toString(), ex.getMessage());
        return null;
    }
}

From source file:com.mgmtp.jfunk.web.step.CheckElement4Pattern.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("by", by);
    tsb.append("pattern", pattern.toString());
    return tsb.toString();
}