You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/07/22 12:38:42 UTC

svn commit: r678703 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java

Author: cziegeler
Date: Tue Jul 22 03:38:41 2008
New Revision: 678703

URL: http://svn.apache.org/viewvc?rev=678703&view=rev
Log:
Add getPath to JcrPropertyMap.

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java?rev=678703&r1=678702&r2=678703&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java (original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java Tue Jul 22 03:38:41 2008
@@ -129,6 +129,14 @@
         return cache.values();
     }
 
+    public String getPath() {
+        try {
+            return node.getPath();
+        } catch (RepositoryException e) {
+            // TODO
+            return "";
+        }
+    }
     // ---------- Helpers to access the node's property ------------------------
 
     private Object read(String key) {