You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2006/03/07 20:34:06 UTC
svn commit: r383974 - in /webservices/axis2/trunk/java/modules:
adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java
adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Author: ajith
Date: Tue Mar 7 11:34:06 2006
New Revision: 383974
URL: http://svn.apache.org/viewcvs?rev=383974&view=rev
Log:
1. Updated the converterUtil to generate the correct string for bytes. Bytes need to be converted to represent their integer value
2. Fixed the namespace for the 'nil' attribute ("http://www.w3.org/2001/XMLSchema-instance")
Modified:
webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java
webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java?rev=383974&r1=383973&r2=383974&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ADBPullParser.java Tue Mar 7 11:34:06 2006
@@ -112,7 +112,7 @@
* remove them from the namespace map, after the end element.
*/
private HashMap namespaceMap;
- private static final QName NIL_QNAME = new QName("nil");
+ private static final QName NIL_QNAME = new QName("http://www.w3.org/2001/XMLSchema-instance","nil");
private ADBPullParser(QName adbBeansQName, Object[] properties, Object[] attributes) {
Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=383974&r1=383973&r2=383974&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java Tue Mar 7 11:34:06 2006
@@ -93,7 +93,7 @@
}
public static String convertToString(byte i) {
- return new String(new byte[]{i});
+ return ((int)i)+"";
}
public static String convertToString(char i) {
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=383974&r1=383973&r2=383974&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl Tue Mar 7 11:34:06 2006
@@ -254,6 +254,10 @@
}
+ /**
+ * utility method to http://www.w3.org/2001/XMLSchema-instance
+ */
+
/**
* Factory class that keeps the parse method
*/
@@ -278,7 +282,7 @@
</xsl:if>
<xsl:if test="@nillable">
- if ("true".equals(reader.getAttributeValue("","nil"))){
+ if ("true".equals(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil"))){
return null;
}
</xsl:if>
@@ -406,7 +410,7 @@
<!-- if-block that handles nillable -->
<xsl:if test="@nillable">
- if ("true".equals(reader.getAttributeValue("","nil"))){
+ if ("true".equals(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil"))){
<xsl:value-of select="$listName"/>.add(null);
}else{
</xsl:if>