changeset 283:7c33cac15134

Added DefaultFacet.toString() method to help debugging. artifacts/trunk@2177 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 21 Jun 2011 15:18:38 +0000
parents d15f09d5b89d
children 084d68974d4a
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 21 15:14:43 2011 +0000
+++ b/ChangeLog	Tue Jun 21 15:18:38 2011 +0000
@@ -1,3 +1,8 @@
+2011-06-21	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java:
+	  Added toString() method to help debugging.
+
 2011-06-21  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java	Tue Jun 21 15:14:43 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java	Tue Jun 21 15:18:38 2011 +0000
@@ -64,5 +64,13 @@
     public Object getData(Artifact artifact, CallContext context) {
         return null;
     }
+
+    public String toString() {
+        return new StringBuilder("name = '")
+            .append(name).append("', index = ")
+            .append(index).append(", description = '")
+            .append(description).append("'")
+            .toString();
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org