axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r417399 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Tue, 27 Jun 2006 10:28:08 GMT
Author: ajith
Date: Tue Jun 27 03:28:06 2006
New Revision: 417399

URL: http://svn.apache.org/viewvc?rev=417399&view=rev
Log:
1.Made all references qualified names (String -> java.lang.String). It may not be a problem
for most of the cases but there can be certain instances where String maps to a local class
rather than java.lang.String

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=417399&r1=417398&r2=417399&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Tue Jun 27 03:28:06 2006
@@ -176,11 +176,13 @@
                   this.<xsl:value-of select="$varName"/>=param;
                   }
 
-                   <!-- we special case the 'array' scenario and generate a convenience
-                       method for adding elements one by one to the array. The
-                       current implementation is somewhat inefficient but
-                       gets the job done.Since a primitive cannot be
-                       treated as an object it has to be ignored!
+                   <!--
+
+                       we special case the 'array' scenario and generate a
+                       convenience method for adding elements one by one to
+                       the array. The current implementation is somewhat
+                       inefficient but gets the job done.Since a primitive
+                       cannot be treated as an object it has to be ignored!
 
                  -->
                  <xsl:if test="not(@primitive)">
@@ -260,11 +262,11 @@
             <xsl:when test="@type or @anon">
                 <!-- For a type write the passed in QName first-->
 		
-		String prefix = parentQName.getPrefix();
-                String namespace = parentQName.getNamespaceURI();
+		        java.lang.String prefix = parentQName.getPrefix();
+                java.lang.String namespace = parentQName.getNamespaceURI();
                 
                 if (namespace != null) {
-                    String writerPrefix = xmlWriter.getPrefix(namespace);
+                    java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
                     if (writerPrefix != null) {
                         xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
                     } else {
@@ -324,10 +326,10 @@
                                 <xsl:when test="@nillable">
                                     if (<xsl:value-of select="$varName"/>==null){
 				    
-				        String namespace = "<xsl:value-of select="$namespace"/>";
+				        java.lang.String namespace = "<xsl:value-of select="$namespace"/>";
 			
 					if (! namespace.equals("")) {
-						String prefix = xmlWriter.getPrefix(namespace);
+						java.lang.String prefix = xmlWriter.getPrefix(namespace);
 				    
 						if (prefix == null) {
 							prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrifix();
@@ -548,10 +550,10 @@
                         <xsl:choose>
                             <xsl:when test="$nillable">
                                       if (<xsl:value-of select="$varName"/>==null){
-				          String namespace = "<xsl:value-of select="property/@nsuri"/>";
+				        java.lang.String namespace = "<xsl:value-of select="property/@nsuri"/>";
 			
 						if (! namespace.equals("")) {
-							String prefix = xmlWriter.getPrefix(namespace);
+							java.lang.String prefix = xmlWriter.getPrefix(namespace);
 					    
 							if (prefix == null) {
 								prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrifix();
@@ -592,10 +594,10 @@
                     </xsl:when>
                     <!-- end of ours block-->
                     <xsl:otherwise>
-		        String namespace = "<xsl:value-of select="property/@nsuri"/>";
+		        java.lang.String namespace = "<xsl:value-of select="property/@nsuri"/>";
 			
 			if (! namespace.equals("")) {
-				String prefix = xmlWriter.getPrefix(namespace);
+				java.lang.String prefix = xmlWriter.getPrefix(namespace);
                     
 				if (prefix == null) {
 					prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrifix();



---------------------------------------------------------------------
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