<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:template match="/bean"> | |
namespace <xsl:value-of select="@package"/> | |
{ | |
/// <summary> | |
/// Auto generated bean class by the Axis code generator | |
/// This is meant to be used with the IKVM converted Axis libraries | |
/// </summary> | |
public class <xsl:value-of select="@name"/> { | |
<xsl:for-each select="property"> | |
<xsl:variable name="propertyType"><xsl:value-of select="@type"></xsl:value-of></xsl:variable> | |
<xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable> | |
/// <summary> | |
/// field for <xsl:value-of select="$propertyName"/> | |
///</summary> | |
private <xsl:value-of select="$propertyType"/> local<xsl:value-of select="$propertyName"/>; | |
/// <summary> | |
/// Auto generated getter method | |
///</summary> | |
/// <returns><xsl:value-of select="$propertyType"/></returns> | |
/// | |
public <xsl:value-of select="$propertyType"/><xsl:text> </xsl:text>get<xsl:value-of select="$propertyName"/>(){ | |
return local<xsl:value-of select="$propertyName"/>; | |
} | |
/// <summary> | |
/// Auto generated setter method | |
///</summary> | |
///<param name="param{$propertyName}"> </param> | |
/// | |
public void set<xsl:value-of select="$propertyName"/>(<xsl:value-of select="$propertyType"/> param<xsl:value-of select="$propertyName"/>){ | |
this.local<xsl:value-of select="$propertyName"/>=param<xsl:value-of select="$propertyName"/>; | |
} | |
</xsl:for-each> | |
} | |
} | |
</xsl:template> | |
</xsl:stylesheet> |