jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r779091 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java
Date Wed, 27 May 2009 10:30:06 GMT
Author: angela
Date: Wed May 27 10:30:05 2009
New Revision: 779091

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

- add missing property types

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java?rev=779091&r1=779090&r2=779091&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/StringConstraint.java
Wed May 27 10:30:05 2009
@@ -56,6 +56,7 @@
         }
         switch (value.getType()) {
             case PropertyType.STRING:
+            case PropertyType.URI:
                 String text = value.getString();
                 Matcher matcher = pattern.matcher(text);
                 if (!matcher.matches()) {
@@ -64,7 +65,7 @@
                 return;
 
             default:
-                String msg = "STRING constraint can not be applied to value of type: " +
PropertyType.nameFromValue(value.getType());
+                String msg = "String constraint can not be applied to value of type: " +
PropertyType.nameFromValue(value.getType());
                 log.debug(msg);
                 throw new RepositoryException(msg);
         }



Mime
View raw message