integer.xsl revision 3215
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 ! You can obtain a copy of the license at 1008N/A ! See the License for the specific language governing permissions 1008N/A ! and limitations under the License. 1008N/A ! When distributing Covered Code, include this CDDL HEADER in each 1008N/A ! file and include the License file at 1008N/A ! add the following below this CDDL HEADER, with the fields enclosed 1008N/A ! by brackets "[]" replaced with your own identifying information: 1008N/A ! Portions Copyright [yyyy] [name of copyright owner] 3215N/A ! Copyright 2008 Sun Microsystems, Inc. 1008N/A Templates for processing integer properties. 1008N/A <
xsl:
template match="adm:integer" mode="java-value-type">
1008N/A <
xsl:
value-
of select="'Integer'" />
1008N/A <
xsl:
template match="adm:integer" mode="java-value-primitive-type">
1008N/A <
xsl:
value-
of select="'int'" />
1008N/A <
xsl:
template match="adm:integer" mode="java-definition-type">
1008N/A <
xsl:
value-
of select="'IntegerPropertyDefinition'" />
1008N/A <
xsl:
template match="adm:integer" mode="java-definition-ctor">
1008N/A <
xsl:
if test="boolean(@allow-unlimited)">
1008N/A @allow-unlimited, ');
')" />
1008N/A <
xsl:
if test="boolean(@upper-limit)">
1008N/A @upper-limit, ');
')" />
1008N/A <
xsl:
if test="boolean(@lower-limit)">
1008N/A @lower-limit, ');
')" />