diff artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java @ 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 7fbe674d758a
children e5bc48dc3ec3
line wrap: on
line diff
--- 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