Example usage for org.apache.commons.lang3.builder ToStringBuilder toString

List of usage examples for org.apache.commons.lang3.builder ToStringBuilder toString

Introduction

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

Prototype

@Override
public String toString() 

Source Link

Document

Returns the built toString.

This method appends the end of data indicator, and can only be called once.

Usage

From source file:org.silverpeas.core.notification.sse.AbstractServerEvent.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, SHORT_PREFIX_STYLE);
    tsb.append("id", getId());
    tsb.append("name", getName().asString());
    return tsb.toString();
}

From source file:org.silverpeas.core.notification.sse.SilverpeasAsyncContext.java

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, SHORT_PREFIX_STYLE);
    tsb.append("on", getRequestURI());
    tsb.append("sessionId", getSessionId());
    tsb.append("userId", getUser().getId());
    tsb.append("timeout", getTimeout());
    if (getLastServerEventId() != null) {
        tsb.append("lastServerEventId", getLastServerEventId());
    }/*  w  ww.j  a v a 2  s . com*/
    return tsb.toString();
}

From source file:org.silverpeas.core.webapi.calendar.CalendarEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("uri", getURI());
    builder.append("id", getId());
    builder.append("title", getTitle());
    builder.append("zoneId", getZoneId());
    builder.append("externalUrl", getExternalUrl());
    return builder.toString();
}

From source file:org.silverpeas.core.webapi.calendar.CalendarEventAttendeeEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("uri", getURI());
    builder.append("attendeeId", getId());
    builder.append("fullName", getFullName());
    builder.append("participationStatus", getParticipationStatus());
    builder.append("presenceStatus", getPresenceStatus());
    return builder.toString();
}

From source file:org.silverpeas.core.webapi.calendar.CalendarEventAttributeEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("name", getName());
    builder.append("value", getValue());
    return builder.toString();
}

From source file:org.silverpeas.core.webapi.calendar.CalendarEventRecurrenceEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("frequency", getFrequency());
    builder.append("count", getCount());
    builder.append("daysOfWeek", getDaysOfWeek());
    builder.append("endDate", getEndDate());
    return builder.toString();
}

From source file:org.silverpeas.core.webapi.calendar.ParticipantCalendarEventOccurrencesEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("id", getId());
    builder.append("title", getTitle());
    builder.append("occurrences", getOccurrences());
    return builder.toString();
}

From source file:org.silverpeas.core.webapi.reminder.ReminderEntity.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("uri", getURI());
    builder.append("id", getId());
    builder.append("contributionId", getcId());
    builder.append("contributionProperty", getcProperty());
    builder.append("userId", getUserId());
    builder.append("dateTime", getDateTime());
    builder.append("duration", getDuration());
    builder.append("timeUnit", getTimeUnit());
    builder.append("text", getText());
    return builder.toString();
}

From source file:org.skfiy.typhon.domain.Mail.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("title", title);
    builder.append("content", content);
    builder.append("appendix", appendix);
    builder.append("count", count);
    builder.append("state", state);
    builder.append("type", type);
    builder.append("creationTime", creationTime);
    builder.append("expiredTime", expiredTime);
    // FIXME/*from ww w.j  a  v  a  2 s  .co m*/
    builder.append("index", index());
    return builder.toString();
}

From source file:org.skfiy.typhon.domain.Role.java

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("rid", rid).append("\n");
    builder.append("level", level).append("\n");
    builder.append("creationTime", creationTime).append("\n");
    builder.append("diamond", diamond).append("\n");
    builder.append("currentTimeMillis", System.currentTimeMillis()).append("\n");
    return builder.toString();
}