jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r779074 - /jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java
Date Wed, 27 May 2009 09:51:35 GMT
Author: angela
Date: Wed May 27 09:51:35 2009
New Revision: 779074

URL: http://svn.apache.org/viewvc?rev=779074&view=rev
Log:
JCR-2105: JSR 283 NodeType Management (work in progress)

- deal with new property types in QPropertyDefinitionImpl created from JCR PropertyDefinition

Modified:
    jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java?rev=779074&r1=779073&r2=779074&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/QPropertyDefinitionImpl.java
Wed May 27 09:51:35 2009
@@ -105,9 +105,10 @@
                                                int requiredType)
             throws RepositoryException {
         if (requiredType == PropertyType.REFERENCE
+                || requiredType == PropertyType.WEAKREFERENCE
                 || requiredType == PropertyType.NAME
                 || requiredType == PropertyType.PATH) {
-            int type = requiredType == PropertyType.REFERENCE ? PropertyType.NAME : requiredType;
+            int type = ((requiredType == PropertyType.REFERENCE || requiredType == PropertyType.WEAKREFERENCE)
? PropertyType.NAME : requiredType);
             for (int i = 0; i < constraints.length; i++) {
                 constraints[i] = ValueFormat.getQValue(
                         constraints[i], type, resolver, factory).getString();



Mime
View raw message