1008N/A<!--
1008N/A ! CDDL HEADER START
1008N/A !
1008N/A ! The contents of this file are subject to the terms of the
1008N/A ! Common Development and Distribution License, Version 1.0 only
1008N/A ! (the "License"). You may not use this file except in compliance
1008N/A ! with the License.
1008N/A !
6983N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/A ! or http://forgerock.org/license/CDDLv1.0.html.
1008N/A ! See the License for the specific language governing permissions
1008N/A ! and limitations under the License.
1008N/A !
1008N/A ! When distributing Covered Code, include this CDDL HEADER in each
6983N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/A ! If applicable, add the following below this CDDL HEADER, with the
6983N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6983N/A ! information:
1008N/A ! Portions Copyright [yyyy] [name of copyright owner]
1008N/A !
1008N/A ! CDDL HEADER END
1008N/A !
1008N/A !
3215N/A ! Copyright 2008 Sun Microsystems, Inc.
1008N/A ! -->
1008N/A<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
1008N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
1008N/A <!--
1008N/A Templates for processing integer properties.
1008N/A -->
1008N/A <xsl:template match="adm:integer" mode="java-value-type">
1008N/A <xsl:value-of select="'Integer'" />
1008N/A </xsl:template>
1008N/A <xsl:template match="adm:integer" mode="java-value-primitive-type">
1008N/A <xsl:value-of select="'int'" />
1008N/A </xsl:template>
1008N/A <xsl:template match="adm:integer" mode="java-definition-type">
1008N/A <xsl:value-of select="'IntegerPropertyDefinition'" />
1008N/A </xsl:template>
1008N/A <xsl:template match="adm:integer" mode="java-definition-ctor">
1008N/A <xsl:if test="boolean(@allow-unlimited)">
1008N/A <xsl:value-of
1008N/A select="concat(' builder.setAllowUnlimited(',
1008N/A @allow-unlimited, ');&#xa;')" />
1008N/A </xsl:if>
1008N/A <xsl:if test="boolean(@upper-limit)">
1008N/A <xsl:value-of
1008N/A select="concat(' builder.setUpperLimit(',
1008N/A @upper-limit, ');&#xa;')" />
1008N/A </xsl:if>
1008N/A <xsl:if test="boolean(@lower-limit)">
1008N/A <xsl:value-of
1008N/A select="concat(' builder.setLowerLimit(',
1008N/A @lower-limit, ');&#xa;')" />
1008N/A </xsl:if>
1008N/A </xsl:template>
1008N/A</xsl:stylesheet>