Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 44922 invoked from network); 24 Jul 2006 09:18:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 09:18:25 -0000 Received: (qmail 44976 invoked by uid 500); 24 Jul 2006 09:18:25 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 44881 invoked by uid 500); 24 Jul 2006 09:18:25 -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 44872 invoked by uid 99); 24 Jul 2006 09:18:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 02:18:24 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 02:18:24 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 064601A981D; Mon, 24 Jul 2006 02:18:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r424974 - in /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi: NodeImpl.java PropertyImpl.java Date: Mon, 24 Jul 2006 09:18:03 -0000 To: commits@jackrabbit.apache.org From: angela@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060724091804.064601A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: angela Date: Mon Jul 24 02:18:02 2006 New Revision: 424974 URL: http://svn.apache.org/viewvc?rev=424974&view=rev Log: work in progress - javadoc - cleanup refactoring effects Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java?rev=424974&r1=424973&r2=424974&view=diff ============================================================================== --- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java (original) +++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java Mon Jul 24 02:18:02 2006 @@ -187,7 +187,7 @@ checkIsWritable(); // 1. build qualified path and retrieve parent node Path nodePath = getQPath(relPath); - if (nodePath.getNameElement().getIndex() != org.apache.jackrabbit.name.Path.INDEX_UNDEFINED) { + if (nodePath.getNameElement().getIndex() != Path.INDEX_UNDEFINED) { String msg = "Illegal subscript specified: " + relPath; log.debug(msg); throw new RepositoryException(msg); @@ -536,7 +536,7 @@ if (parentId == null) { // the root node cannot have same-name siblings; always return the // default index - return org.apache.jackrabbit.name.Path.INDEX_DEFAULT; + return Path.INDEX_DEFAULT; } try { NodeState parent = (NodeState) itemStateMgr.getItemState(parentId); @@ -891,14 +891,14 @@ // search nearest ancestor that is referenceable NodeImpl referenceableNode = this; - while (referenceableNode.getDepth() != org.apache.jackrabbit.name.Path.ROOT_DEPTH && !referenceableNode.isNodeType(QName.MIX_REFERENCEABLE)) { + while (referenceableNode.getDepth() != Path.ROOT_DEPTH && !referenceableNode.isNodeType(QName.MIX_REFERENCEABLE)) { referenceableNode = (NodeImpl) referenceableNode.getParent(); } // if root is common ancestor, corresponding path is same as ours // otherwise access referenceable ancestor and calcuate correspond. path. String correspondingPath; - if (referenceableNode.getDepth() == org.apache.jackrabbit.name.Path.ROOT_DEPTH) { + if (referenceableNode.getDepth() == Path.ROOT_DEPTH) { if (!srcSession.getItemManager().itemExists(getQPath())) { throw new ItemNotFoundException("No corresponding path found in workspace " + workspaceName + "(" + safeGetJCRPath() + ")"); } else { @@ -1358,7 +1358,7 @@ * @param qName * @param type * @param def - * @param ivs + * @param qvs * @return * @throws PathNotFoundException * @throws ConstraintViolationException @@ -1432,8 +1432,7 @@ } /** - * - * @return + * @return NodeState of this Node */ private NodeState getNodeState() { return (NodeState) getItemState(); @@ -1522,7 +1521,9 @@ } catch (PathNotFoundException e) { // item does not exist -> ignore and return null } catch (MalformedPathException e) { - e.printStackTrace(); + String msg = "Invalid relative path: " + relPath; + log.debug(msg); + throw new RepositoryException(msg, e); } return targetId; } Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java?rev=424974&r1=424973&r2=424974&view=diff ============================================================================== --- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java (original) +++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java Mon Jul 24 02:18:02 2006 @@ -442,7 +442,7 @@ //---------------------------------------------< private implementation >--- /** * - * @return + * @return true if the definition indicates that this Property is multivalued. */ private boolean isMultiple() { return definition.isMultiple(); @@ -451,7 +451,7 @@ /** * * @param defaultType - * @return + * @return the required type for this property. */ private int getRequiredType(int defaultType) { // check type according to definition of this property @@ -528,7 +528,7 @@ // DIFF JACKRABBIT: protected void internalSetValue(QValue[] values, int type) /** * - * @param internalValues + * @param qValues * @param valueType * @throws ConstraintViolationException * @throws RepositoryException