Author: bdelacretaz
Date: Mon Jan 21 06:21:35 2008
New Revision: 613897

URL: http://svn.apache.org/viewvc?rev=613897&view=rev
Log:
toString added for easier debugging

Modified:
    
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java

Modified: 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
URL: 
http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java?rev=613897&r1=613896&r2=613897&view=diff
==============================================================================
--- 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
 (original)
+++ 
incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
 Mon Jan 21 06:21:35 2008
@@ -122,6 +122,12 @@
                 ? Mapping.INBOUND
                 : ("<".equals(parts[1]) ? Mapping.OUTBOUND : Mapping.BOTH);
     }
+    
+    @Override
+    public String toString() {
+        return "Mapping (from=" + from + ", to=" + to + ", direction=" + 
direction 
+            + ", lengths=" + fromLength + "/" + toLength;
+    }
 
     /**
      * Replaces the prefix <em>to</em> by the new prefix <em>from</em>, if


Reply via email to