axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r449479 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Date Sun, 24 Sep 2006 20:54:45 GMT
Author: dims
Date: Sun Sep 24 13:54:44 2006
New Revision: 449479

URL: http://svn.apache.org/viewvc?view=rev&rev=449479
Log:
Fix for AXIS2-1211 - Mapping a value of type xs:dateTime to null

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java?view=diff&rev=449479&r1=449478&r2=449479
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Sun Sep 24 13:54:44 2006
@@ -42,7 +42,8 @@
     private static final String W_BOOLEAN = "java.lang.Boolean";
     private static final String W_CHAR = "java.lang.Character";
     private static final String W_FLOAT = "java.lang.Float";
-    private static final String W_CALANDER = "java.util.Calendar";
+    private static final String W_CALENDAR = "java.util.Calendar";
+    private static final String W_DATE = "java.util.Date"; 
     private static final String ARRAY_LIST = "java.util.ArrayList";
     private static final String INT = "int";
     private static final String BOOLEAN = "boolean";
@@ -88,8 +89,10 @@
             return new Float(value.getText());
         } else if (parameter.getName().equals(W_CHAR)) {
             return new Character(value.getText().toCharArray()[0]);
-        } else if (parameter.getName().equals(W_CALANDER)) {
+        } else if (parameter.getName().equals(W_CALENDAR)) {
             return makeCalendar(value.getText(), false);
+        } else if (parameter.getName().equals(W_DATE)) {
+            return makeCalendar(value.getText(), true); 
         } else {
             return null;
         }
@@ -167,8 +170,10 @@
             return true;
         } else if (objClassName.equals(W_FLOAT)) {
             return true;
-        } else if (objClassName.equals(W_CALANDER)) {
+        } else if (objClassName.equals(W_CALENDAR)) {
             return true;
+        } else if (objClassName.equals(W_DATE)) {
+            return true; 
         } else return objClassName.equals(W_CHAR);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message