Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ROO-3046: Use Apache Commons libraries in Roo - use commons-lang ToSt…

…ringBuilder instead of Roo's ToStringCreator and support classes
  • Loading branch information...
commit c6f1c8c13e75136ed3f1ddd34c730c21a6a2e19c 1 parent 2366cea
Alan Stewart authored
Showing with 552 additions and 1,151 deletions.
  1. +10 −10 addon-configurable/src/main/java/org/springframework/roo/addon/configurable/ConfigurableMetadata.java
  2. +9 −9 addon-dod/src/main/java/org/springframework/roo/addon/dod/DataOnDemandMetadata.java
  3. +4 −4 addon-email/src/main/java/org/springframework/roo/addon/email/MailProtocol.java
  4. +9 −9 addon-equals/src/main/java/org/springframework/roo/addon/equals/EqualsMetadata.java
  5. +9 −9 addon-finder/src/main/java/org/springframework/roo/addon/finder/FinderMetadata.java
  6. +9 −9 addon-javabean/src/main/java/org/springframework/roo/addon/javabean/JavaBeanMetadata.java
  7. +7 −7 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JdbcDatabase.java
  8. +5 −5 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/OrmProvider.java
  9. +10 −10 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/activerecord/JpaActiveRecordMetadata.java
  10. +9 −9 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/application/JsfApplicationBeanMetadata.java
  11. +9 −9 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/converter/JsfConverterMetadata.java
  12. +9 −9 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/managedbean/JsfManagedBeanMetadata.java
  13. +9 −9 addon-json/src/main/java/org/springframework/roo/addon/json/JsonMetadata.java
  14. +9 −9 ...repository-jpa/src/main/java/org/springframework/roo/addon/layers/repository/jpa/RepositoryJpaMetadata.java
  15. +9 −9 ...pository-mongo/src/main/java/org/springframework/roo/addon/layers/repository/mongo/MongoEntityMetadata.java
  16. +9 −9 ...tory-mongo/src/main/java/org/springframework/roo/addon/layers/repository/mongo/RepositoryMongoMetadata.java
  17. +9 −9 addon-layers-service/src/main/java/org/springframework/roo/addon/layers/service/ServiceClassMetadata.java
  18. +9 −9 addon-layers-service/src/main/java/org/springframework/roo/addon/layers/service/ServiceInterfaceMetadata.java
  19. +3 −3 addon-logging/src/main/java/org/springframework/roo/addon/logging/LogLevel.java
  20. +5 −5 addon-logging/src/main/java/org/springframework/roo/addon/logging/LoggerPackage.java
  21. +9 −9 addon-op4j/src/main/java/org/springframework/roo/addon/op4j/Op4jMetadata.java
  22. +11 −11 addon-plural/src/main/java/org/springframework/roo/addon/plural/PluralMetadata.java
  23. +9 −9 addon-property-editor/src/main/java/org/springframework/roo/addon/property/editor/EditorMetadata.java
  24. +4 −4 addon-roobot-client/src/main/java/org/springframework/roo/addon/roobot/client/AddOnBundleSymbolicName.java
  25. +5 −5 addon-roobot-client/src/main/java/org/springframework/roo/addon/roobot/client/model/Rating.java
  26. +9 −9 addon-serializable/src/main/java/org/springframework/roo/addon/serializable/SerializableMetadata.java
  27. +6 −6 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrJspMetadata.java
  28. +9 −9 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrMetadata.java
  29. +9 −9 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrWebSearchMetadata.java
  30. +9 −9 addon-test/src/main/java/org/springframework/roo/addon/test/IntegrationTestMetadata.java
  31. +9 −9 addon-tostring/src/main/java/org/springframework/roo/addon/tostring/ToStringMetadata.java
  32. +9 −9 ...mvc-controller/src/main/java/org/springframework/roo/addon/web/mvc/controller/finder/WebFinderMetadata.java
  33. +9 −9 ...web-mvc-controller/src/main/java/org/springframework/roo/addon/web/mvc/controller/json/WebJsonMetadata.java
  34. +9 −9 ...controller/src/main/java/org/springframework/roo/addon/web/mvc/controller/scaffold/WebScaffoldMetadata.java
  35. +4 −4 ...mbedded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/DocumentEmbeddedProvider.java
  36. +4 −4 ...c-embedded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/PhotoEmbeddedProvider.java
  37. +4 −4 ...c-embedded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/VideoEmbeddedProvider.java
  38. +4 −4 ...dded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/VideoStreamEmbeddedProvider.java
  39. +6 −6 addon-web-mvc-jsp/src/main/java/org/springframework/roo/addon/web/mvc/jsp/JspMetadata.java
  40. +1 −1  addon-web-mvc-jsp/src/main/java/org/springframework/roo/addon/web/mvc/jsp/i18n/languages/GermanLanguage.java
  41. +16 −16 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultClassOrInterfaceTypeDetails.java
  42. +10 −10 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultConstructorMetadata.java
  43. +10 −10 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultFieldMetadata.java
  44. +8 −8 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultImportMetadata.java
  45. +8 −8 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultInitializerMetadata.java
  46. +19 −19 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultItdTypeDetails.java
  47. +13 −13 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultMethodMetadata.java
  48. +2 −2 classpath/src/main/java/org/springframework/roo/classpath/details/MethodMetadataBuilder.java
  49. +5 −5 classpath/src/main/java/org/springframework/roo/classpath/details/annotations/DefaultAnnotationMetadata.java
  50. +8 −8 classpath/src/main/java/org/springframework/roo/classpath/itd/AbstractItdTypeDetailsProvidingMetadataItem.java
  51. +6 −6 classpath/src/main/java/org/springframework/roo/classpath/layers/MemberTypeAdditions.java
  52. +4 −4 classpath/src/main/java/org/springframework/roo/classpath/operations/Cardinality.java
  53. +5 −5 classpath/src/main/java/org/springframework/roo/classpath/operations/DateTime.java
  54. +4 −4 classpath/src/main/java/org/springframework/roo/classpath/operations/EnumType.java
  55. +4 −4 classpath/src/main/java/org/springframework/roo/classpath/operations/Fetch.java
  56. +4 −4 classpath/src/main/java/org/springframework/roo/classpath/operations/InheritanceType.java
  57. +4 −4 felix/src/main/java/org/springframework/roo/felix/BundleSymbolicName.java
  58. +5 −5 felix/src/main/java/org/springframework/roo/felix/LogLevel.java
  59. +5 −5 felix/src/main/java/org/springframework/roo/felix/PsOptions.java
  60. +6 −6 file-monitor/src/main/java/org/springframework/roo/file/monitor/DirectoryMonitoringRequest.java
  61. +5 −5 file-monitor/src/main/java/org/springframework/roo/file/monitor/FileMonitoringRequest.java
  62. +6 −6 file-monitor/src/main/java/org/springframework/roo/file/monitor/event/FileDetails.java
  63. +6 −6 file-monitor/src/main/java/org/springframework/roo/file/monitor/event/FileEvent.java
  64. +11 −11 metadata/src/main/java/org/springframework/roo/metadata/DefaultMetadataService.java
  65. +8 −8 metadata/src/test/java/org/springframework/roo/metadata/DefaultMetadataServiceTest.java
  66. +4 −4 process-manager/src/main/java/org/springframework/roo/process/manager/internal/DefaultMutableFile.java
  67. +9 −9 project/src/main/java/org/springframework/roo/project/Dependency.java
  68. +7 −9 project/src/main/java/org/springframework/roo/project/Execution.java
  69. +4 −4 project/src/main/java/org/springframework/roo/project/Filter.java
  70. +5 −5 project/src/main/java/org/springframework/roo/project/PhysicalPath.java
  71. +5 −5 project/src/main/java/org/springframework/roo/project/Plugin.java
  72. +6 −6 project/src/main/java/org/springframework/roo/project/ProjectMetadata.java
  73. +5 −5 project/src/main/java/org/springframework/roo/project/Property.java
  74. +6 −6 project/src/main/java/org/springframework/roo/project/Repository.java
  75. +6 −6 project/src/main/java/org/springframework/roo/project/Resource.java
  76. +7 −7 shell/src/main/java/org/springframework/roo/shell/MethodTarget.java
  77. +6 −6 shell/src/main/java/org/springframework/roo/shell/ParseResult.java
  78. +0 −101 support/src/main/java/org/springframework/roo/support/style/DefaultToStringStyler.java
  79. +0 −148 support/src/main/java/org/springframework/roo/support/style/DefaultValueStyler.java
  80. +0 −50 support/src/main/java/org/springframework/roo/support/style/StylerUtils.java
  81. +0 −195 support/src/main/java/org/springframework/roo/support/style/ToStringCreator.java
  82. +0 −68 support/src/main/java/org/springframework/roo/support/style/ToStringStyler.java
  83. +0 −35 support/src/main/java/org/springframework/roo/support/style/ValueStyler.java
View
20 addon-configurable/src/main/java/org/springframework/roo/addon/configurable/ConfigurableMetadata.java
@@ -3,6 +3,7 @@
import static org.springframework.roo.model.SpringJavaType.CONFIGURABLE;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
@@ -10,7 +11,6 @@
import org.springframework.roo.metadata.MetadataIdentificationUtils;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooConfigurable}.
@@ -81,15 +81,15 @@ private AnnotationMetadata getConfigurableAnnotation() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("configurableIntroduced",
+ 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("configurableIntroduced",
getTypeAnnotation(CONFIGURABLE) != null);
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.toString();
+ builder.append("itdTypeDetails", itdTypeDetails);
+ return builder.toString();
}
}
View
18 addon-dod/src/main/java/org/springframework/roo/addon/dod/DataOnDemandMetadata.java
@@ -38,6 +38,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.customdata.CustomDataKeys;
@@ -60,7 +61,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.JdkJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooDataOnDemand}.
@@ -1670,13 +1670,13 @@ private void setSpecificPersistentEntityMethod() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
8 addon-email/src/main/java/org/springframework/roo/addon/email/MailProtocol.java
@@ -1,7 +1,7 @@
package org.springframework.roo.addon.email;
import org.apache.commons.lang3.Validate;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Protocols known to the email add-on.
@@ -59,8 +59,8 @@ public int hashCode() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", protocolLabel);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", protocolLabel);
+ return builder.toString();
}
}
View
18 addon-equals/src/main/java/org/springframework/roo/addon/equals/EqualsMetadata.java
@@ -9,6 +9,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.FieldMetadata;
@@ -20,7 +21,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.CollectionUtils;
/**
@@ -197,13 +197,13 @@ private MethodMetadataBuilder getHashCodeMethod() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-finder/src/main/java/org/springframework/roo/addon/finder/FinderMetadata.java
@@ -11,6 +11,7 @@
import java.util.Map;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
@@ -24,7 +25,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJpaActiveRecord#finders()}.
@@ -325,13 +325,13 @@ private MethodMetadataBuilder getDynamicFinderMethod(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-javabean/src/main/java/org/springframework/roo/addon/javabean/JavaBeanMetadata.java
@@ -22,6 +22,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.BeanInfoUtils;
@@ -39,7 +40,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJavaBean}.
@@ -518,13 +518,13 @@ private void processGaeAnnotations(final FieldMetadata field) {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
14 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JdbcDatabase.java
@@ -1,7 +1,7 @@
package org.springframework.roo.addon.jpa;
import org.apache.commons.lang3.Validate;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Provides information related to JDBC database configuration.
@@ -77,11 +77,11 @@ public String getKey() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("name", name());
- tsc.append("key", key);
- tsc.append("driver class name", driverClassName);
- tsc.append("connection string", connectionString);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("name", name());
+ builder.append("key", key);
+ builder.append("driver class name", driverClassName);
+ builder.append("connection string", connectionString);
+ return builder.toString();
}
}
View
10 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/OrmProvider.java
@@ -1,7 +1,7 @@
package org.springframework.roo.addon.jpa;
import org.apache.commons.lang3.Validate;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* ORM providers known to the JPA add-on.
@@ -39,9 +39,9 @@ public String getConfigPrefix() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", name());
- tsc.append("adapter", adapter);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", name());
+ builder.append("adapter", adapter);
+ return builder.toString();
}
}
View
20 addon-jpa/src/main/java/org/springframework/roo/addon/jpa/activerecord/JpaActiveRecordMetadata.java
@@ -15,6 +15,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.customdata.CustomDataKeys;
@@ -33,7 +34,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for a type annotated with {@link RooJpaActiveRecord}.
@@ -786,14 +786,14 @@ else if (!identifierField.getFieldType().isPrimitive()) {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("finders", crudAnnotationValues.getFinders());
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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("finders", crudAnnotationValues.getFinders());
+ builder.append("governor", governorPhysicalTypeMetadata.getId());
+ builder.append("itdTypeDetails", itdTypeDetails);
+ return builder.toString();
}
}
View
18 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/application/JsfApplicationBeanMetadata.java
@@ -24,6 +24,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails;
@@ -39,7 +40,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJsfApplicationBean}.
@@ -269,13 +269,13 @@ private boolean hasScopeAnnotation() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/converter/JsfConverterMetadata.java
@@ -12,6 +12,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.MethodMetadata;
@@ -27,7 +28,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.JdkJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJsfConverter}.
@@ -229,13 +229,13 @@ private boolean isConverterInterfaceIntroduced() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-jsf/src/main/java/org/springframework/roo/addon/jsf/managedbean/JsfManagedBeanMetadata.java
@@ -82,6 +82,7 @@
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.customdata.CustomDataKeys;
@@ -107,7 +108,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.JdkJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJsfManagedBean}.
@@ -1765,13 +1765,13 @@ private void setRegexPatternValidationString(final FieldMetadata field,
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-json/src/main/java/org/springframework/roo/addon/json/JsonMetadata.java
@@ -12,6 +12,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.MethodMetadataBuilder;
@@ -23,7 +24,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata to be triggered by {@link RooJson} annotation
@@ -288,13 +288,13 @@ public JavaSymbolName getToJsonMethodName() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...ository-jpa/src/main/java/org/springframework/roo/addon/layers/repository/jpa/RepositoryJpaMetadata.java
@@ -3,6 +3,7 @@
import java.util.Arrays;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails;
@@ -13,7 +14,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.SpringJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooJpaRepository}.
@@ -98,13 +98,13 @@ public RepositoryJpaMetadata(final String identifier,
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...itory-mongo/src/main/java/org/springframework/roo/addon/layers/repository/mongo/MongoEntityMetadata.java
@@ -6,6 +6,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.BeanInfoUtils;
@@ -24,7 +25,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.SpringJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Creates metadata for domain entity ITDs (annotated with
@@ -190,13 +190,13 @@ private MethodMetadataBuilder getIdentifierMutator(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...y-mongo/src/main/java/org/springframework/roo/addon/layers/repository/mongo/RepositoryMongoMetadata.java
@@ -3,6 +3,7 @@
import java.util.Arrays;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails;
@@ -12,7 +13,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.SpringJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Creates metadata for repository ITDs (annotated with
@@ -89,13 +89,13 @@ public RepositoryMongoMetadata(final String identifier,
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-layers-service/src/main/java/org/springframework/roo/addon/layers/service/ServiceClassMetadata.java
@@ -8,6 +8,7 @@
import java.util.Map.Entry;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails;
@@ -23,7 +24,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* @author Stefan Schmidt
@@ -156,13 +156,13 @@ public ServiceClassMetadata(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...-layers-service/src/main/java/org/springframework/roo/addon/layers/service/ServiceInterfaceMetadata.java
@@ -5,6 +5,7 @@
import java.util.Map.Entry;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.MethodMetadataBuilder;
@@ -16,7 +17,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* The metadata about a service interface within a user project
@@ -144,13 +144,13 @@ public ServiceAnnotationValues getServiceAnnotationValues() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
6 addon-logging/src/main/java/org/springframework/roo/addon/logging/LogLevel.java
@@ -11,8 +11,8 @@
@Override
public String toString() {
- final StringBuilder tsc = new StringBuilder();
- tsc.append("logLevel " + name());
- return tsc.toString();
+ final StringBuilder builder = new StringBuilder();
+ builder.append("logLevel " + name());
+ return builder.toString();
}
}
View
10 addon-logging/src/main/java/org/springframework/roo/addon/logging/LoggerPackage.java
@@ -2,7 +2,7 @@
import java.util.Arrays;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Provides information related to the configuration of the LOGGER.
@@ -29,9 +29,9 @@ private LoggerPackage(final String... packageNames) {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("layer", name());
- tsc.append("package names", Arrays.asList(packageNames));
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("layer", name());
+ builder.append("package names", Arrays.asList(packageNames));
+ return builder.toString();
}
}
View
18 addon-op4j/src/main/java/org/springframework/roo/addon/op4j/Op4jMetadata.java
@@ -8,6 +8,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeCategory;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
@@ -20,7 +21,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata to be triggered by {@link RooOp4j} annotation
@@ -110,13 +110,13 @@ private ClassOrInterfaceTypeDetails getInnerType() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
22 addon-plural/src/main/java/org/springframework/roo/addon/plural/PluralMetadata.java
@@ -8,6 +8,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.jvnet.inflector.Noun;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
@@ -20,7 +21,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooPlural}.
@@ -193,15 +193,15 @@ public int hashCode() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("plural", getPlural());
- tsc.append("cachedLookups", cache == null ? "[None]" : cache.keySet()
- .toString());
- return tsc.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("plural", getPlural());
+ builder.append("cachedLookups", cache == null ? "[None]" : cache
+ .keySet().toString());
+ return builder.toString();
}
}
View
18 addon-property-editor/src/main/java/org/springframework/roo/addon/property/editor/EditorMetadata.java
@@ -6,6 +6,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.FieldMetadata;
@@ -21,7 +22,6 @@
import org.springframework.roo.model.JdkJavaType;
import org.springframework.roo.model.SpringJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooEditor}.
@@ -212,13 +212,13 @@ private MethodMetadataBuilder getSetAsTextMethod(final JavaType javaType,
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
8 addon-roobot-client/src/main/java/org/springframework/roo/addon/roobot/client/AddOnBundleSymbolicName.java
@@ -1,7 +1,7 @@
package org.springframework.roo.addon.roobot.client;
import org.apache.commons.lang3.Validate;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Display Addon symbolic name for command completion.
@@ -47,8 +47,8 @@ public final int hashCode() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("key", key);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("key", key);
+ return builder.toString();
}
}
View
10 addon-roobot-client/src/main/java/org/springframework/roo/addon/roobot/client/model/Rating.java
@@ -1,6 +1,6 @@
package org.springframework.roo.addon.roobot.client.model;
-import org.springframework.roo.support.style.ToStringCreator;
+import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Star ratings for the "addon feedback bundle" command.
@@ -41,9 +41,9 @@ public Integer getKey() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("name", name());
- tsc.append("key", key);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("name", name());
+ builder.append("key", key);
+ return builder.toString();
}
}
View
18 addon-serializable/src/main/java/org/springframework/roo/addon/serializable/SerializableMetadata.java
@@ -7,6 +7,7 @@
import static org.springframework.roo.model.JdkJavaType.SERIALIZABLE;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.customdata.CustomDataKeys;
@@ -18,7 +19,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooSerializable}.
@@ -118,13 +118,13 @@ ItdTypeDetails getItdTypeDetails() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
12 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrJspMetadata.java
@@ -1,13 +1,13 @@
package org.springframework.roo.addon.solr;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.metadata.AbstractMetadataItem;
import org.springframework.roo.metadata.MetadataIdentificationUtils;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
import org.springframework.roo.project.Path;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata built from {@link SolrWebSearchMetadata}. A single
@@ -66,11 +66,11 @@ public SolrJspMetadata(final String identifier,
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("solr jsp scaffold metadata id",
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("identifier", getId());
+ builder.append("valid", valid);
+ builder.append("solr jsp scaffold metadata id",
solrWebSearchMetadata.getId());
- return tsc.toString();
+ return builder.toString();
}
}
View
18 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrMetadata.java
@@ -17,6 +17,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.FieldMetadata;
@@ -34,7 +35,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooSolrSearchable}.
@@ -478,13 +478,13 @@ private MethodMetadataBuilder getSolrServerMethod() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-solr/src/main/java/org/springframework/roo/addon/solr/SolrWebSearchMetadata.java
@@ -11,6 +11,7 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.web.mvc.controller.scaffold.WebScaffoldAnnotationValues;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
@@ -27,7 +28,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooSolrWebSearchable}.
@@ -295,13 +295,13 @@ private MethodMetadataBuilder getSearchMethod(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-test/src/main/java/org/springframework/roo/addon/test/IntegrationTestMetadata.java
@@ -13,6 +13,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.dod.DataOnDemandMetadata;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
@@ -32,7 +33,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.model.JdkJavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooIntegrationTest}.
@@ -923,13 +923,13 @@ private MethodMetadataBuilder getRemoveMethodTest(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 addon-tostring/src/main/java/org/springframework/roo/addon/tostring/ToStringMetadata.java
@@ -6,6 +6,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.MethodMetadataBuilder;
@@ -15,7 +16,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooToString}.
@@ -141,13 +141,13 @@ private MethodMetadataBuilder getToStringMethod() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...-controller/src/main/java/org/springframework/roo/addon/web/mvc/controller/finder/WebFinderMetadata.java
@@ -18,6 +18,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.web.mvc.controller.details.FinderMetadataDetails;
import org.springframework.roo.addon.web.mvc.controller.details.JavaTypeMetadataDetails;
import org.springframework.roo.addon.web.mvc.controller.details.JavaTypePersistenceMetadataDetails;
@@ -43,7 +44,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for finder functionality provided via {@link RooWebScaffold}.
@@ -366,14 +366,14 @@ private MethodMetadataBuilder getFinderMethod(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
private String uncapitalize(final String term) {
View
18 ...-mvc-controller/src/main/java/org/springframework/roo/addon/web/mvc/controller/json/WebJsonMetadata.java
@@ -27,6 +27,7 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.json.JsonMetadata;
import org.springframework.roo.addon.web.mvc.controller.details.FinderMetadataDetails;
import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
@@ -52,7 +53,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for Json functionality provided through {@link RooWebScaffold}.
@@ -811,13 +811,13 @@ private MethodMetadataBuilder getUpdateFromJsonArrayMethod(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
18 ...troller/src/main/java/org/springframework/roo/addon/web/mvc/controller/scaffold/WebScaffoldMetadata.java
@@ -37,6 +37,7 @@
import java.util.SortedMap;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.web.mvc.controller.details.DateTimeFormatDetails;
import org.springframework.roo.addon.web.mvc.controller.details.JavaTypeMetadataDetails;
import org.springframework.roo.addon.web.mvc.controller.details.JavaTypePersistenceMetadataDetails;
@@ -63,7 +64,6 @@
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata for {@link RooWebScaffold}.
@@ -906,13 +906,13 @@ private MethodMetadataBuilder getUpdateMethod(
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("aspectName", aspectName);
- tsc.append("destinationType", destination);
- tsc.append("governor", governorPhysicalTypeMetadata.getId());
- tsc.append("itdTypeDetails", itdTypeDetails);
- return tsc.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();
}
}
View
8 ...dded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/DocumentEmbeddedProvider.java
@@ -3,11 +3,11 @@
import java.util.HashMap;
import java.util.Map;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.springframework.roo.addon.web.mvc.embedded.AbstractEmbeddedProvider;
import org.springframework.roo.addon.web.mvc.embedded.EmbeddedCompletor;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.XmlElementBuilder;
import org.springframework.roo.support.util.XmlRoundTripUtils;
import org.springframework.roo.support.util.XmlUtils;
@@ -28,9 +28,9 @@
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", name());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", name());
+ return builder.toString();
}
}
View
8 ...mbedded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/PhotoEmbeddedProvider.java
@@ -3,11 +3,11 @@
import java.util.HashMap;
import java.util.Map;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.springframework.roo.addon.web.mvc.embedded.AbstractEmbeddedProvider;
import org.springframework.roo.addon.web.mvc.embedded.EmbeddedCompletor;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.XmlElementBuilder;
import org.springframework.roo.support.util.XmlRoundTripUtils;
import org.springframework.roo.support.util.XmlUtils;
@@ -28,9 +28,9 @@
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", name());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", name());
+ return builder.toString();
}
}
View
8 ...mbedded/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/VideoEmbeddedProvider.java
@@ -5,11 +5,11 @@
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.springframework.roo.addon.web.mvc.embedded.AbstractEmbeddedProvider;
import org.springframework.roo.addon.web.mvc.embedded.EmbeddedCompletor;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.XmlElementBuilder;
import org.springframework.roo.support.util.XmlRoundTripUtils;
import org.springframework.roo.support.util.XmlUtils;
@@ -31,9 +31,9 @@
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", name());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", name());
+ return builder.toString();
}
}
View
8 ...d/src/main/java/org/springframework/roo/addon/web/mvc/embedded/provider/VideoStreamEmbeddedProvider.java
@@ -3,11 +3,11 @@
import java.util.HashMap;
import java.util.Map;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.springframework.roo.addon.web.mvc.embedded.AbstractEmbeddedProvider;
import org.springframework.roo.addon.web.mvc.embedded.EmbeddedCompletor;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.XmlElementBuilder;
import org.springframework.roo.support.util.XmlRoundTripUtils;
import org.springframework.roo.support.util.XmlUtils;
@@ -28,9 +28,9 @@
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("provider", name());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("provider", name());
+ return builder.toString();
}
}
View
12 addon-web-mvc-jsp/src/main/java/org/springframework/roo/addon/web/mvc/jsp/JspMetadata.java
@@ -1,6 +1,7 @@
package org.springframework.roo.addon.web.mvc.jsp;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.addon.web.mvc.controller.scaffold.WebScaffoldAnnotationValues;
import org.springframework.roo.addon.web.mvc.controller.scaffold.WebScaffoldMetadata;
import org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils;
@@ -9,7 +10,6 @@
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
import org.springframework.roo.project.Path;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Metadata built from {@link WebScaffoldMetadata}. A single {@link JspMetadata}
@@ -75,10 +75,10 @@ public WebScaffoldAnnotationValues getAnnotationValues() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("identifier", getId());
- tsc.append("valid", valid);
- tsc.append("web scaffold metadata id", webScaffoldMetadata.getId());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("identifier", getId());
+ builder.append("valid", valid);
+ builder.append("web scaffold metadata id", webScaffoldMetadata.getId());
+ return builder.toString();
}
}
View
2  ...n-web-mvc-jsp/src/main/java/org/springframework/roo/addon/web/mvc/jsp/i18n/languages/GermanLanguage.java
@@ -23,7 +23,7 @@ public InputStream getFlagGraphic() {
}
public String getLanguage() {
- return "Deutsch";
+ return "Deubuilderh";
}
public Locale getLocale() {
View
32 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultClassOrInterfaceTypeDetails.java
@@ -13,13 +13,13 @@
import java.util.Set;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeCategory;
import org.springframework.roo.classpath.customdata.CustomDataKeys;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default representation of a {@link ClassOrInterfaceTypeDetails}.
@@ -214,20 +214,20 @@ public boolean isAbstract() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("name", name);
- tsc.append("modifier", Modifier.toString(getModifier()));
- tsc.append("physicalTypeCategory", physicalTypeCategory);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("declaredConstructors", declaredConstructors);
- tsc.append("declaredFields", declaredFields);
- tsc.append("declaredMethods", declaredMethods);
- tsc.append("enumConstants", enumConstants);
- tsc.append("superclass", superclass);
- tsc.append("extendsTypes", extendsTypes);
- tsc.append("implementsTypes", implementsTypes);
- tsc.append("annotations", getAnnotations());
- tsc.append("customData", getCustomData());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("name", name);
+ builder.append("modifier", Modifier.toString(getModifier()));
+ builder.append("physicalTypeCategory", physicalTypeCategory);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("declaredConstructors", declaredConstructors);
+ builder.append("declaredFields", declaredFields);
+ builder.append("declaredMethods", declaredMethods);
+ builder.append("enumConstants", enumConstants);
+ builder.append("superclass", superclass);
+ builder.append("extendsTypes", extendsTypes);
+ builder.append("implementsTypes", implementsTypes);
+ builder.append("annotations", getAnnotations());
+ builder.append("customData", getCustomData());
+ return builder.toString();
}
}
View
20 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultConstructorMetadata.java
@@ -3,12 +3,12 @@
import java.lang.reflect.Modifier;
import java.util.List;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.details.annotations.AnnotatedJavaType;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default implementation of {@link ConstructorMetadata}.
@@ -32,14 +32,14 @@
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("modifier", Modifier.toString(getModifier()));
- tsc.append("parameterTypes", getParameterTypes());
- tsc.append("parameterNames", getParameterNames());
- tsc.append("annotations", getAnnotations());
- tsc.append("customData", getCustomData());
- tsc.append("body", getBody());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("modifier", Modifier.toString(getModifier()));
+ builder.append("parameterTypes", getParameterTypes());
+ builder.append("parameterNames", getParameterNames());
+ builder.append("annotations", getAnnotations());
+ builder.append("customData", getCustomData());
+ builder.append("body", getBody());
+ return builder.toString();
}
}
View
20 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultFieldMetadata.java
@@ -4,11 +4,11 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default implementation of {@link FieldMetadata}.
@@ -54,14 +54,14 @@ public JavaType getFieldType() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("modifier", Modifier.toString(getModifier()));
- tsc.append("fieldType", fieldType);
- tsc.append("fieldName", fieldName);
- tsc.append("fieldInitializer", fieldInitializer);
- tsc.append("annotations", getAnnotations());
- tsc.append("customData", getCustomData());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("modifier", Modifier.toString(getModifier()));
+ builder.append("fieldType", fieldType);
+ builder.append("fieldName", fieldName);
+ builder.append("fieldInitializer", fieldInitializer);
+ builder.append("annotations", getAnnotations());
+ builder.append("customData", getCustomData());
+ return builder.toString();
}
}
View
16 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultImportMetadata.java
@@ -1,9 +1,9 @@
package org.springframework.roo.classpath.details;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.JavaPackage;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default implementation of {@link ImportMetadata}.
@@ -49,12 +49,12 @@ public boolean isStatic() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("typePackage", importPackage);
- tsc.append("type", importType);
- tsc.append("isStatic", isStatic);
- tsc.append("isAsterisk", isAsterisk);
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("typePackage", importPackage);
+ builder.append("type", importType);
+ builder.append("isStatic", isStatic);
+ builder.append("isAsterisk", isAsterisk);
+ return builder.toString();
}
}
View
16 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultInitializerMetadata.java
@@ -2,8 +2,8 @@
import java.lang.reflect.Modifier;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.model.CustomData;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default implementation of {@link InitializerMetadata}.
@@ -37,12 +37,12 @@ public boolean isStatic() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("modifier", Modifier.toString(getModifier()));
- tsc.append("customData", getCustomData());
- tsc.append("isStatic", isStatic());
- tsc.append("body", getBody());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("modifier", Modifier.toString(getModifier()));
+ builder.append("customData", getCustomData());
+ builder.append("isStatic", isStatic());
+ builder.append("body", getBody());
+ return builder.toString();
}
}
View
38 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultItdTypeDetails.java
@@ -8,6 +8,7 @@
import java.util.Set;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.PhysicalTypeCategory;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
import org.springframework.roo.classpath.itd.AbstractItdMetadataProvider;
@@ -15,7 +16,6 @@
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.CustomDataAccessor;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
import org.springframework.roo.support.util.CollectionUtils;
/**
@@ -216,23 +216,23 @@ public boolean isPrivilegedAspect() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("modifier", getModifier());
- tsc.append("name", governor);
- tsc.append("aspect", aspect);
- tsc.append("physicalTypeCategory", PHYSICAL_TYPE_CATEGORY);
- tsc.append("privilegedAspect", privilegedAspect);
- tsc.append("registeredImports", registeredImports);
- tsc.append("declaredConstructors", declaredConstructors);
- tsc.append("declaredFields", declaredFields);
- tsc.append("declaredMethods", declaredMethods);
- tsc.append("extendsTypes", extendsTypes);
- tsc.append("fieldAnnotations", fieldAnnotations);
- tsc.append("methodAnnotations", methodAnnotations);
- tsc.append("typeAnnotations", getAnnotations());
- tsc.append("innerTypes", innerTypes);
- tsc.append("customData", getCustomData());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("modifier", getModifier());
+ builder.append("name", governor);
+ builder.append("aspect", aspect);
+ builder.append("physicalTypeCategory", PHYSICAL_TYPE_CATEGORY);
+ builder.append("privilegedAspect", privilegedAspect);
+ builder.append("registeredImports", registeredImports);
+ builder.append("declaredConstructors", declaredConstructors);
+ builder.append("declaredFields", declaredFields);
+ builder.append("declaredMethods", declaredMethods);
+ builder.append("extendsTypes", extendsTypes);
+ builder.append("fieldAnnotations", fieldAnnotations);
+ builder.append("methodAnnotations", methodAnnotations);
+ builder.append("typeAnnotations", getAnnotations());
+ builder.append("innerTypes", innerTypes);
+ builder.append("customData", getCustomData());
+ return builder.toString();
}
}
View
26 classpath/src/main/java/org/springframework/roo/classpath/details/DefaultMethodMetadata.java
@@ -4,12 +4,12 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.details.annotations.AnnotatedJavaType;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadata;
import org.springframework.roo.model.CustomData;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Default implementation of {@link MethodMetadata}.
@@ -63,17 +63,17 @@ public boolean isStatic() {
@Override
public String toString() {
- final ToStringCreator tsc = new ToStringCreator(this);
- tsc.append("declaredByMetadataId", getDeclaredByMetadataId());
- tsc.append("modifier", Modifier.toString(getModifier()));
- tsc.append("methodName", methodName);
- tsc.append("parameterTypes", getParameterTypes());
- tsc.append("parameterNames", getParameterNames());
- tsc.append("returnType", returnType);
- tsc.append("annotations", getAnnotations());
- tsc.append("throwsTypes", getThrowsTypes());
- tsc.append("customData", getCustomData());
- tsc.append("body", getBody());
- return tsc.toString();
+ final ToStringBuilder builder = new ToStringBuilder(this);
+ builder.append("declaredByMetadataId", getDeclaredByMetadataId());
+ builder.append("modifier", Modifier.toString(getModifier()));
+ builder.append("methodName", methodName);
+ builder.append("parameterTypes", getParameterTypes());
+ builder.append("parameterNames", getParameterNames());
+ builder.append("returnType", returnType);
+ builder.append("annotations", getAnnotations());
+ builder.append("throwsTypes", getThrowsTypes());
+ builder.append("customData", getCustomData());
+ builder.append("body", getBody());
+ return builder.toString();
}
}
View
4 classpath/src/main/java/org/springframework/roo/classpath/details/MethodMetadataBuilder.java
@@ -3,11 +3,11 @@
import java.util.ArrayList;
import java.util.List;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.roo.classpath.details.annotations.AnnotatedJavaType;
import org.springframework.roo.classpath.itd.InvocableMemberBodyBuilder;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;
-import org.springframework.roo.support.style.ToStringCreator;
/**
* Builder for {@link MethodMetadata}.
@@ -110,7 +110,7 @@ public void setReturnType(final JavaType returnType) {
@Override
public String toString() {
- return new ToStringCreator(this)
+ return new ToStringBuilder(this)
// Append the parts of the method that make up the Java
// signature
.append("methodName", methodName)