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