incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r678703 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrPropertyMap.java
Date Tue, 22 Jul 2008 10:38:42 GMT
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) {



Mime
View raw message