Java Code Examples for org.apache.commons.lang.builder.ToStringBuilder#append()

The following examples show how to use org.apache.commons.lang.builder.ToStringBuilder#append() . 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 File: Camera.java    From openhab1-addons with Eclipse Public License 2.0 6 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("is_streaming", this.is_streaming);
    builder.append("is_audio_input_enabled", this.is_audio_input_enabled);
    builder.append("last_is_online_change", this.last_is_online_change);
    builder.append("is_video_history_enabled", this.is_video_history_enabled);
    builder.append("web_url", this.web_url);
    builder.append("app_url", this.app_url);
    builder.append("is_public_share_enabled", this.is_public_share_enabled);
    // TODO: builder.append("activity_zones", this.activity_zones);
    builder.append("public_share_url", this.public_share_url);
    builder.append("snapshot_url", this.snapshot_url);
    builder.append("last_event", this.last_event);
    return builder.toString();
}
 
Example 2
Source File: GetTherapeuticLinkResponse.java    From freehealth-connector with GNU Affero General Public License v3.0 6 votes vote down vote up
public String toString() {
   ToStringBuilder builder = new ToStringBuilder(this);
   builder.append(super.toString() + ", List of Therapeutic links : [");
   if (this.listOfTherapeuticLinks != null) {
      Iterator it = this.listOfTherapeuticLinks.iterator();

      while(it.hasNext()) {
         builder.append(((TherapeuticLinkResponse)it.next()).toString());
         if (it.hasNext()) {
            builder.append(", ");
         }
      }
   }

   builder.append("]");
   return builder.toString();
}
 
Example 3
Source File: GetTherapeuticLinkResponse.java    From freehealth-connector with GNU Affero General Public License v3.0 6 votes vote down vote up
public String toString() {
   ToStringBuilder builder = new ToStringBuilder(this);
   builder.append(super.toString() + ", List of Therapeutic links : [");
   if (this.listOfTherapeuticLinks != null) {
      Iterator it = this.listOfTherapeuticLinks.iterator();

      while(it.hasNext()) {
         builder.append(((TherapeuticLinkResponse)it.next()).toString());
         if (it.hasNext()) {
            builder.append(", ");
         }
      }
   }

   builder.append("]");
   return builder.toString();
}
 
Example 4
Source File: ModificationEvent.java    From datawave with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("id", id);
    tsb.append("idType", idType);
    tsb.append("operations", operations);
    tsb.append("user", user);
    return tsb.toString();
}
 
Example 5
Source File: TherapeuticLink.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public String toString() {
   ToStringBuilder builder = new ToStringBuilder(this);
   builder.append(this.comment);
   builder.append(this.endDate);
   builder.append(this.hcParty);
   builder.append(this.patient);
   builder.append(this.startDate);
   builder.append(this.status);
   return builder.toString();
}
 
Example 6
Source File: RanNnep.java    From KEEL with GNU General Public License v3.0 5 votes vote down vote up
/**
 * <p>
 * Returns a String representation of the random generator
 * </p>
 * @return String representation of the random generator
 */
public String toString() 
{
    ToStringBuilder tsb = new ToStringBuilder(this);
    // Append a value
    tsb.append("a", a);
    // Append b value
    tsb.append("b", b);
    // Return generated string
    return tsb.toString();
}
 
Example 7
Source File: NotificationSubscriptionContext.java    From olat with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("identity", getIdentity());
    builder.append("publisher", publisher.toString());

    return builder.toString();
}
 
Example 8
Source File: GetHomeDataResponse.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("body", this.body);
    builder.append("status", this.status);
    builder.append("time_exec", this.time_exec);
    builder.append("time_server", this.time_server);

    return builder.toString();
}
 
Example 9
Source File: AccessTokenRequest.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("pinCode", this.pinCode);
    builder.append("clientId", this.clientId);
    builder.append("clientSecret", this.clientSecret);
    return builder.toString();
}
 
Example 10
Source File: Event.java    From olat with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("id", getId());
    builder.append("courseId", getCourseId());
    builder.append("date", getDate());
    builder.append("start", getStart());
    builder.append("end", getEnd());
    return builder.toString();
}
 
Example 11
Source File: Weather.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);

    if (this instanceof org.openhab.binding.weather.internal.model.Forecast) {
        tsb.append("day", ((org.openhab.binding.weather.internal.model.Forecast) this).getDay());
    }

    tsb.append(temperature).append(atmosphere).append(clouds).append(condition).append(precipitation).append(wind)
            .append(station).append(error);

    return tsb.toString();
}
 
Example 12
Source File: TokenPackage.java    From spacewalk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("id", getId())
           .append("token", getToken())
           .append("packageName", getPackageName());

    if (this.getPackageArch() != null) {
        builder.append("packageArch", getPackageArch());
    }
    return builder.toString();
}
 
Example 13
Source File: GetHomeDataResponse.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("id", this.id);
    builder.append("lastSeen", this.lastSeen);
    builder.append("out_of_sight", this.out_of_sight);
    builder.append("face", this.face);
    builder.append("pseudo", this.pseudo);

    return builder.toString();
}
 
Example 14
Source File: RefreshTokenRequest.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("clientId", this.clientId);
    builder.append("clientSecret", this.clientSecret);
    builder.append("refreshToken", this.refreshToken);

    return builder.toString();
}
 
Example 15
Source File: OperationContext.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public String toString() {
   ToStringBuilder builder = new ToStringBuilder(this);
   builder.append(this.operation);
   builder.append(this.author);
   builder.append(this.proofs);
   builder.append(this.recordDate);
   return builder.toString();
}
 
Example 16
Source File: DataModelResponse.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();
    builder.appendSuper(super.toString());
    builder.append("error", this.error);

    return builder.toString();
}
 
Example 17
Source File: ConfirmationInfo.java    From olat with Apache License 2.0 5 votes vote down vote up
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    if (allRecipientInfos.size() > 0) {
        builder.append("first recipientsEmail", allRecipientInfos.get(0).getRecipientsEmail());
        builder.append("first recipientsLocale", allRecipientInfos.get(0).getRecipientsLocale());
    }
    builder.append("originatorIdentity", originatorIdentity.getName());
    builder.append("courseName", courseName);
    builder.append("dateTime", dateTime);

    return builder.toString();
}
 
Example 18
Source File: GanttTaskImpl.java    From projectforge-webapp with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String toString()
{
  final ToStringBuilder tos = new ToStringBuilder(this);
  tos.append("id", getId());
  tos.append("title", getTitle());
  if (getChildren() != null) {
    tos.append("children", getChildren());
  }
  return tos.toString();
}
 
Example 19
Source File: LabelValueBean.java    From projectforge-webapp with GNU General Public License v3.0 4 votes vote down vote up
public String toString() {
  ToStringBuilder sb = new ToStringBuilder(this);
  sb.append("key", this.value);
  sb.append("value", this.label);
  return sb.toString();
}
 
Example 20
Source File: Proof.java    From freehealth-connector with GNU Affero General Public License v3.0 4 votes vote down vote up
public String toString() {
   ToStringBuilder builder = new ToStringBuilder(this);
   builder.append(this.binaryProof);
   builder.append(this.type);
   return builder.toString();
}