Author: veithen
Date: Tue May 24 21:23:01 2011
New Revision: 1127297
URL: http://svn.apache.org/viewvc?rev=1127297&view=rev
Log:
AXIS2-5048: Applied patch submitted by Juan Angel Fuentes to add support for
xsd:duration in org.apache.axis2.databinding.types.Union.
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/types/Union.java
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/types/Union.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/types/Union.java?rev=1127297&r1=1127296&r2=1127297&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/types/Union.java
(original)
+++
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/types/Union.java
Tue May 24 21:23:01 2011
@@ -107,6 +107,8 @@ public abstract class Union implements S
setObject(new NonNegativeInteger(value));
} else if ("nonPositiveInteger".equals(type)) {
setObject(new NonPositiveInteger(value));
+ } else if ("duration".equals(type)) {
+ setObject(ConverterUtil.convertToDuration(value));
} else {
throw new RuntimeException("Object not found");
}