| | |
| | | Singleton configuration definition instance. |
| | | --> |
| | | <xsl:value-of |
| | | select="concat(' // The singleton configuration definition instance.
', |
| | | select="concat(' /** The singleton configuration definition instance. */
', |
| | | ' private static final ', |
| | | $this-java-class , |
| | | 'CfgDefn INSTANCE = new ', $this-java-class, 'CfgDefn();
')" /> |
| | |
| | | Private instance. |
| | | --> |
| | | <xsl:value-of |
| | | select="concat(' // Private implementation.
', |
| | | select="concat(' /** Private implementation. */
', |
| | | ' private ManagedObject<? extends ', |
| | | $this-java-class, |
| | | 'CfgClient> impl;
')" /> |
| | |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of |
| | | select="concat(' // Private constructor.
', |
| | | select="concat(' /** Private constructor. */
', |
| | | ' private ', |
| | | $this-java-class, |
| | | 'CfgClientImpl(
', |
| | |
| | | Private instance. |
| | | --> |
| | | <xsl:value-of |
| | | select="concat(' // Private implementation.
', |
| | | select="concat(' /** Private implementation. */
', |
| | | ' private ServerManagedObject<? extends ', $this-java-class, 'Cfg> impl;
')" /> |
| | | <!-- |
| | | Private members for each property. |
| | |
| | | <xsl:sort select="@name" /> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of |
| | | select="concat(' // The value of the "', @name, '" property.
')" /> |
| | | select="concat(' /** The value of the "', @name, '" property. */
')" /> |
| | | <xsl:value-of select="' private final '" /> |
| | | <xsl:choose> |
| | | <xsl:when test="string(@multi-valued) != 'true'"> |
| | |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of |
| | | select="concat(' // Private constructor.
', |
| | | select="concat(' /** Private constructor. */
', |
| | | ' private ', |
| | | $this-java-class, |
| | | 'CfgServerImpl(ServerManagedObject<? extends ', $this-java-class, 'Cfg> impl) {
', |
| | |
| | | </xsl:choose> |
| | | </xsl:variable> |
| | | <xsl:value-of |
| | | select="concat(' // The "', |
| | | select="concat(' /** The "', |
| | | @name, |
| | | '" property definition.
', |
| | | '" property definition. */
', |
| | | ' private static final ', $pdtype, ' PD_', $java-prop-name, ';
')" /> |
| | | </xsl:template> |
| | | <!-- |
| | |
| | | <xsl:call-template name="get-property-java-type" /> |
| | | </xsl:variable> |
| | | <xsl:value-of |
| | | select="concat(' // Build the "', @name, '" property definition.
', |
| | | select="concat(' /** Build the "', @name, '" property definition. */
', |
| | | ' static {
')" /> |
| | | <xsl:choose> |
| | | <xsl:when test="string-length($generic-type) != 0"> |
| | |
| | | </xsl:call-template> |
| | | </xsl:variable> |
| | | <xsl:value-of |
| | | select="concat(' // The "', |
| | | select="concat(' /** The "', |
| | | $relation-name, |
| | | '" relation definition.
', |
| | | '" relation definition. */
', |
| | | ' private static final ')" /> |
| | | <xsl:choose> |
| | | <xsl:when test="adm:one-to-one"> |
| | |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of |
| | | select="' // String representation of the value.
'" /> |
| | | select="' /** String representation of the value. */
'" /> |
| | | <xsl:value-of select="' private final String name;
'" /> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:value-of select="' // Private constructor.
'" /> |
| | | <xsl:value-of select="' /** Private constructor. */
'" /> |
| | | <xsl:value-of select="' private '" /> |
| | | <xsl:call-template name="name-to-java"> |
| | | <xsl:with-param name="value" select="@name" /> |