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

The following examples show how to use org.apache.commons.lang.builder.ToStringBuilder#toString() . 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: ConfigFileData.java    From spacewalk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("Path", getPath()).
            append("Owner", getOwner()).
            append("Group", getGroup()).
            append("Permissions", getPermissions()).
            append("SELinux Context", getSelinuxCtx()).
            append("Type", getType()).
            append("Macro Start", getMacroStart()).
            append("Macro End", getMacroEnd()).
            append("isBinary", isBinary()).
            append("Size:", getContentSize());
    return builder.toString();
}
 
Example 2
Source File: QueryImpl.java    From datawave with Apache License 2.0 6 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("queryLogicName", this.getQueryLogicName());
    tsb.append("queryName", this.getQueryName());
    tsb.append("expirationDate", this.getExpirationDate());
    tsb.append("uuid", this.getId());
    tsb.append("pagesize", this.getPagesize());
    tsb.append("pageTimeout", this.getPageTimeout());
    tsb.append("maxResultsOverride", (this.isMaxResultsOverridden() ? this.getMaxResultsOverride() : "NA"));
    tsb.append("query", this.getQuery());
    tsb.append("queryAuthorizations", this.getQueryAuthorizations());
    tsb.append("userDN", this.getUserDN());
    tsb.append("owner", this.getOwner());
    tsb.append("parameters", this.getParameters());
    tsb.append("dnList", this.getDnList());
    tsb.append("columnVisibility", this.getColumnVisibility());
    tsb.append("beginDate", this.getBeginDate());
    tsb.append("endDate", this.getEndDate());
    return tsb.toString();
}
 
Example 3
Source File: VariableConfig.java    From openhab1-addons with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("name", name);
    if (converter != null) {
        tsb.append("converter", converter);
    }
    if (action != null) {
        tsb.append("action", action);
    }
    if (forceUpdate) {
        tsb.append("forceUpdate", forceUpdate);
    }
    if (delay > 0.0) {
        tsb.append("delay", delay);
    }
    return tsb.toString();
}
 
Example 4
Source File: Acknowledge.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("Complete? : " + this.isComplete);
   if (this.listOfErrors != null) {
      Iterator it = this.listOfErrors.iterator();

      while(it.hasNext()) {
         TherapeuticLinkResponseError next = (TherapeuticLinkResponseError)it.next();
         builder.append("[");
         builder.append("Error code : " + next.getErrorCode());
         builder.append("ErrorDescription : " + next.getErrorDescription());
         builder.append("]");
         if (it.hasNext()) {
            builder.append(", ");
         }
      }
   }

   return builder.toString();
}
 
Example 5
Source File: MenuEntry.java    From projectforge-webapp with GNU General Public License v3.0 5 votes vote down vote up
/**
 * @see java.lang.Object#toString()
 */
@Override
public String toString()
{
  final ToStringBuilder tos = new ToStringBuilder(this);
  if (menuItemDef != null)
    tos.append("menuItemDef", menuItemDef);
  if (name != null)
    tos.append("name", name);
  return tos.toString();
}
 
Example 6
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("reg_locale", this.reg_locale);
    builder.append("reg_locale", this.reg_locale);

    return builder.toString();
}
 
Example 7
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 8
Source File: AccessEntryDO.java    From projectforge-webapp with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String toString()
{
  final ToStringBuilder sb = new ToStringBuilder(this);
  sb.append("id", getId());
  sb.append("type", this.accessType);
  sb.append("select", this.accessSelect);
  sb.append("insert", this.accessInsert);
  sb.append("update", this.accessUpdate);
  sb.append("delete", this.accessDelete);
  return sb.toString();
}
 
Example 9
Source File: AuthorizeResponse.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("ecobeePin", this.ecobeePin);
    builder.append("authToken", this.authToken);
    builder.append("scope", this.scope);
    builder.append("expiresIn", this.expiresIn);
    builder.append("interval", this.interval);

    return builder.toString();
}
 
Example 10
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("country", this.country);
    builder.append("timezone", this.timezone);

    return builder.toString();
}
 
Example 11
Source File: SagerCasterBindingConfig.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);
    tsb.append("commandType", commandType.toString());
    return tsb.toString();
}
 
Example 12
Source File: KeyValueSet.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE );
  builder.append( "size", this.size() );
  return builder.toString();
}
 
Example 13
Source File: TherapeuticLinkComplete.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);
   DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
   builder.append("TherapeuticLink [HCP = ");
   builder.append(this.hcParty);
   builder.append(", Patient = ");
   builder.append(this.patient);
   if (this.startDate != null) {
      builder.append(", Startdate = ");
      builder.append(df.format(this.startDate.toDateMidnight()));
   }

   if (this.endDate != null) {
      builder.append(", Enddate = ");
      builder.append(df.format(this.endDate.toDateMidnight()));
   }

   builder.append(", Comment = ");
   builder.append(this.comment);
   builder.append(", Status = ");
   builder.append(this.status);
   builder.append(", OperationContexts = ");
   Iterator i$ = this.operationContext.iterator();

   while(i$.hasNext()) {
      OperationContext oc = (OperationContext)i$.next();
      builder.append("[");
      builder.append(oc.getOperation());
      builder.append("]");
   }

   builder.append("]");
   return builder.toString();
}
 
Example 14
Source File: AstroBindingConfig.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("planet", planetName.toString().toLowerCase()).append("type", type).append("property", property);
    if (offset != 0) {
        tsb.append("offset", offset);
    }
    return tsb.toString();
}
 
Example 15
Source File: SkillNode.java    From projectforge-webapp with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String toString()
{
  final ToStringBuilder sb = new ToStringBuilder(this);
  sb.append("id", getId());
  Object parentId = null;
  if (this.parent != null) {
    parentId = this.parent.getId();
  }
  log.debug("id: " + this.getId() + ", parentId: " + parentId);
  sb.append("parent", parentId);
  sb.append("title", skill.getTitle());
  sb.append("childs", this.childs);
  return sb.toString();
}
 
Example 16
Source File: TherapeuticLinkRequestType.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.link);
   builder.append(this.proofs);
   builder.append(this.author);
   builder.append(this.requestDate);
   builder.append(this.externalId);
   return builder.toString();
}
 
Example 17
Source File: PluginMessages.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  final ToStringBuilder builder = new ToStringBuilder( this, ToStringStyle.SHORT_PREFIX_STYLE );
  builder.append( "packageName", this.packageName );
  return builder.toString();
}
 
Example 18
Source File: ThermostatSummaryResponse.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("thermostatIdentifier", this.thermostatIdentifier);
    builder.append("thermostatName", this.thermostatName);
    builder.append("connected", this.connected ? "true" : "false");
    builder.append("thermostatRevision", this.thermostatRevision);
    builder.append("alertsRevision", this.alertsRevision);
    builder.append("runtimeRevision", this.runtimeRevision);
    builder.append("internalRevision", this.internalRevision);

    return builder.toString();
}
 
Example 19
Source File: UpdateThermostatRequest.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("accessToken", this.accessToken);
    builder.append("selection", this.selection);
    if (this.functions != null) {
        builder.append("functions", this.functions);
    }
    if (this.thermostat != null) {
        builder.append("thermostat", this.thermostat);
    }

    return builder.toString();
}
 
Example 20
Source File: AbstractMessage.java    From openhab1-addons with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = createToStringBuilder();

    return builder.toString();
}