[bundlerepository] add toString() method to help debugging

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@916349 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java
index 20d596a..2c387c1 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java
@@ -67,4 +67,9 @@
     {
         m_map.put(name.toLowerCase(), value);
     }
+
+    public String toString()
+    {
+        return m_name  + ":" + m_map.toString();
+    }
 }
\ No newline at end of file
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java
index 785efec..dd30923 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java
@@ -342,4 +342,9 @@
             addCapability(cap);
         }
     }
+
+    public String toString()
+    {
+        return m_bundle.toString();
+    }
 }
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
index fcc1ae9..df44aea 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
@@ -125,6 +125,6 @@
 
     public synchronized String toString()
     {
-        return m_name + ": " + getFilter();
+        return m_name + ":" + getFilter();
     }
 }
\ No newline at end of file
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
index 6cfda8b..4b06b74 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
@@ -275,4 +275,9 @@
             }
         }
     }
+
+    public String toString()
+    {
+        return getId();
+    }
 }
\ No newline at end of file