jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r411141 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java
Date Fri, 02 Jun 2006 12:32:46 GMT
Author: mreutegg
Date: Fri Jun  2 05:32:45 2006
New Revision: 411141

URL: http://svn.apache.org/viewvc?rev=411141&view=rev
Log:
JCR-451: PropertyTypeRegistry should also yield if property is multi-valued

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java?rev=411141&r1=411140&r2=411141&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/PropertyTypeRegistry.java
Fri Jun  2 05:32:45 2006
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.core.query;
 
-import org.apache.jackrabbit.core.nodetype.ItemDef;
 import org.apache.jackrabbit.core.nodetype.NodeTypeDef;
 import org.apache.jackrabbit.core.nodetype.NodeTypeRegistry;
 import org.apache.jackrabbit.core.nodetype.NodeTypeRegistryListener;
@@ -103,7 +102,7 @@
                             System.arraycopy(types, 0, tmp, 0, types.length);
                             types = tmp;
                         }
-                        types[types.length - 1] = new TypeMapping(type, ntName);
+                        types[types.length - 1] = new TypeMapping(ntName, type, propDefs[i].isMultiple());
                         typeMapping.put(name, types);
                     }
                 }
@@ -171,9 +170,13 @@
         /** The QName of the node type where this type mapping originated */
         final QName ntName;
 
-        private TypeMapping(int type, QName ntName) {
+        /** True if the property type is multi-valued */
+        public final boolean isMultiValued;
+
+        private TypeMapping(QName ntName, int type, boolean isMultiValued) {
             this.type = type;
             this.ntName = ntName;
+            this.isMultiValued = isMultiValued;
         }
     }
 }



Mime
View raw message