Changeset 1646 for trunk/src/xml

Show
Ignore:
Timestamp:
04/21/11 15:38:45 (13 months ago)
Author:
amandel
Message:

Generate a is<Foo> method for boolean type members of value Objects.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/xml/xsl/libcommon.xsl

    r1629 r1646  
    639639   </xsl:choose> 
    640640   } 
     641   <xsl:if test="@type = 'boolean' or @type = 'Boolean' or @type = 'java.lang.Boolean'"> 
     642   /** 
     643    * Returns the <xsl:value-of select="$doc"/>. <xsl:call-template name="generate-xdoclet"> 
     644   <xsl:with-param name="doc-text" select="current()/xdoclet" /> 
     645   <xsl:with-param name="indent"><xsl:text>    </xsl:text></xsl:with-param> 
     646</xsl:call-template><xsl:if test="@copyValue = 'clone'"> 
     647    * The value is cloned before being returned.</xsl:if><xsl:if test="@copyValue = 'constructor'"> 
     648    * The value is copied using the copy constructor before being returned.</xsl:if> 
     649    * @return the <xsl:value-of select="$doc"/>. 
     650    */ 
     651   public <xsl:value-of select="@type"/> is<xsl:value-of select="$identifier"/> () 
     652   { 
     653     return get<xsl:value-of select="$identifier"/>(); 
     654   } 
     655   </xsl:if> 
    641656   <xsl:if test="not(@final = 'true' or ../@final = 'true')"> 
    642657