cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1226971 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java
Date Tue, 03 Jan 2012 22:22:49 GMT
Author: dkulp
Date: Tue Jan  3 22:22:49 2012
New Revision: 1226971

URL: http://svn.apache.org/viewvc?rev=1226971&view=rev
Log:
[CXF-4003] Add date and time types for wadl
Patch from Matthias Brandt applied

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java?rev=1226971&r1=1226970&r2=1226971&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java
(original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/XmlSchemaPrimitiveUtils.java
Tue Jan  3 22:22:49 2012
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.common.util;
 
+import java.util.Calendar;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -39,6 +40,12 @@ public final class XmlSchemaPrimitiveUti
         registerPrimitiveClasses("float", Float.class, float.class);
         registerPrimitiveClasses("double", Double.class, double.class);
         registerPrimitiveClasses("string", String.class);
+        
+        registerPrimitiveClasses("dateTime", java.sql.Date.class, 
+                                 java.util.Date.class, 
+                                 Calendar.class,
+                                 java.sql.Timestamp.class);
+        registerPrimitiveClasses("time", java.sql.Time.class);
         // add more as needed
     }
     



Mime
View raw message