Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 86496 invoked from network); 15 Dec 2009 16:21:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 16:21:48 -0000 Received: (qmail 30573 invoked by uid 500); 15 Dec 2009 16:21:48 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 30511 invoked by uid 500); 15 Dec 2009 16:21:48 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 30502 invoked by uid 99); 15 Dec 2009 16:21:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 16:21:48 +0000 X-ASF-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 16:21:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DA9D523888DC; Tue, 15 Dec 2009 16:21:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r890865 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java Date: Tue, 15 Dec 2009 16:21:25 -0000 To: commits@jackrabbit.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091215162125.DA9D523888DC@eris.apache.org> Author: jukka Date: Tue Dec 15 16:21:25 2009 New Revision: 890865 URL: http://svn.apache.org/viewvc?rev=890865&view=rev Log: JCR-2439: More utility methods in JcrUtils Include the full node path in the JcrUtils.toString(Node) output. Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java?rev=890865&r1=890864&r2=890865&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java (original) +++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java Tue Dec 15 16:21:25 2009 @@ -537,7 +537,7 @@ *

* The returned string is not meant to be parsed and the exact contents * can change in future releases. The current string representation of - * a node is "name [type]" and the representation of a property is + * a node is "path [type]" and the representation of a property is * "@name = value(s)". Binary values are expressed like "<123 bytes>" * and other values as their standard binary representation. Multi-valued * properties have their values listed in like "[ v1, v2, v3, ... ]". No @@ -551,7 +551,7 @@ StringBuilder builder = new StringBuilder(); try { if (item.isNode()) { - builder.append(item.getName()); + builder.append(item.getPath()); builder.append(" ["); builder.append(((Node) item).getPrimaryNodeType().getName()); builder.append("]");