Author: sagara
Date: Sat Jul 13 06:49:31 2013
New Revision: 1502754

URL: http://svn.apache.org/r1502754
Log:
Applied patch for AXIS2-4630

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

Modified: 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl?rev=1502754&r1=1502753&r2=1502754&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
 (original)
+++ 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
 Sat Jul 13 06:49:31 2013
@@ -40,6 +40,7 @@
         <xsl:variable name="hasParticleType" select="@hasParticleType"/>
         <xsl:variable name="usewrapperclasses" select="@usewrapperclasses"/>
         <xsl:variable name="ignoreunexpected" select="@ignoreunexpected"/>
+        <xsl:variable name="abstractType" select="@isAbstract"/>
 
         <!-- write the class header. this should be done only when unwrapped 
-->
 
@@ -1766,7 +1767,7 @@
             <xsl:variable name="shortTypeName"
                select="concat(translate( substring($shortTypeNameUncapped, 1, 
1 ),'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ), 
substring($shortTypeNameUncapped, 2, string-length($shortTypeNameUncapped)))" />
 
-            <xsl:if test="$simple and not(@attribute) and not(enumFacet)">
+            <xsl:if test="$simple and not($abstractType) and not(@attribute) 
and not(enumFacet)">
                 public static <xsl:value-of select="$name"/> 
fromString(java.lang.String value,
                                                     java.lang.String 
namespaceURI){
                     <xsl:value-of select="$name"/> returnValue = new  
<xsl:value-of select="$name"/>();


Reply via email to