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

The following examples show how to use org.apache.commons.lang3.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: DS1.java    From riiablo with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  ToStringBuilder builder = new ToStringBuilder(this)
      .append("type", getType())
      .append("id", id)
      .append("x", x)
      .append("y", y)
      .append("ds1Flags", String.format("%08x", flags));
  if (path != null) builder.append("path", path);
  return builder.build();
}
 
Example 2
Source File: ClassDefinition.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder string = new ToStringBuilder(this);
    string.append(code);
    string.append(name);
    return string.toString();
}
 
Example 3
Source File: JQueryJspMetadata.java    From gvnix with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsc = new ToStringBuilder(this);
    tsc.append("identifier", getId());
    tsc.append("valid", valid);
    tsc.append("JQueryMetadata ID",
            jqueryMetadata != null ? jqueryMetadata.getId() : "");
    return tsc.toString();
}
 
Example 4
Source File: HibernateApiMultiEagerCollectionFetchStrategyTest.java    From hibernate-master-class 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("code", getCode());
    return tsb.toString();
}
 
Example 5
Source File: EditUserCommand.java    From fredbet with Creative Commons Attribution Share Alike 4.0 International 5 votes vote down vote up
@Override
public String toString() {
	ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
	builder.append("userId", userId);
	builder.append("roles", roles);
	return builder.toString();
}
 
Example 6
Source File: HibernateApiFetchStrategyTest.java    From hibernate-master-class 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("type", type);
    tsb.append("image", image);
    return tsb.toString();
}
 
Example 7
Source File: SslContextFactory.java    From nifi with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this);
    ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
    builder.append("Type", type);
    builder.append("Description", description);
    return builder.toString();
}
 
Example 8
Source File: Depositor.java    From jpa-unit with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("id", id);
    builder.append("version", version);
    builder.append("name", name);
    builder.append("surname", surname);
    return builder.build();
}
 
Example 9
Source File: GvNIXGeoConversionServiceMetadata.java    From gvnix with GNU General Public License v3.0 5 votes vote down vote up
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();
}
 
Example 10
Source File: HibernateApiFetchStrategyTest.java    From hibernate-master-class 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("name", name);
    return tsb.toString();
}
 
Example 11
Source File: QueryResponse.java    From timely with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("metric", this.metric);
    tsb.append("tags", this.tags);
    tsb.append("aggregatedTags", this.aggregatedTags);
    tsb.append("dps", this.dps);
    return tsb.toString();
}
 
Example 12
Source File: BaseClass.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);

    builder.append("className", className);
    builder.append("classAliases", classAliases);
    builder.append("classDescription", classDescription);
    builder.append("version", version);
    builder.append("classMethods", classMethods);

    return builder.toString();
}
 
Example 13
Source File: HibernateApiMultiEagerCollectionFetchStrategyTest.java    From hibernate-master-class 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("name", name);
    return tsb.toString();
}
 
Example 14
Source File: StandardFlowFileRecord.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    builder.append("uuid", getAttribute(CoreAttributes.UUID.key()));
    builder.append("claim", claim == null ? "" : claim.toString());
    builder.append("offset", claimOffset);
    builder.append("name", getAttribute(CoreAttributes.FILENAME.key())).append("size", size);
    return builder.toString();
}
 
Example 15
Source File: ImageMetaData.java    From fredbet with Creative Commons Attribution Share Alike 4.0 International 5 votes vote down vote up
@Override
public String toString() {
	ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
	builder.append("id", id);
	builder.append("imageGroup", imageGroup);
	builder.append("imageKey", imageKey);
	builder.append("description", description);
	builder.append("version", version);
	builder.append("owner", owner);
	return builder.toString();
}
 
Example 16
Source File: JQueryMetadata.java    From gvnix with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsc = new ToStringBuilder(this);
    tsc.append("identifier", getId());
    tsc.append("valid", valid);
    return tsc.toString();
}
 
Example 17
Source File: ActionClass.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);

    builder.append("className", className);
    builder.append("classAliases", classAliases);
    builder.append("classDescription", classDescription);
    builder.append("plugin", version);
    builder.append("classMethods", classMethods);
    builder.append("utilityClasses", utilityClasses);

    return builder.toString();
}
 
Example 18
Source File: QueryRequest.java    From timely with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("tagk", tagk);
    tsb.append("type", type);
    tsb.append("filter", filter);
    tsb.append("groupBy", groupBy);
    return tsb.toString();
}
 
Example 19
Source File: Customer.java    From jpa-unit with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("id", id);
    builder.append("version", version);
    builder.append("name", name);
    builder.append("surname", surname);
    return builder.build();
}
 
Example 20
Source File: Technology.java    From jpa-unit with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    final ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("name", name);
    return builder.build();
}