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 ! 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 6983N/A ! If applicable, add the following below this CDDL HEADER, with the 6983N/A ! fields enclosed by brackets "[]" replaced with your own identifying 1008N/A ! Portions Copyright [yyyy] [name of copyright owner] 3215N/A ! Copyright 2008 Sun Microsystems, Inc. 1008N/A Templates for processing enumeration properties. 1008N/A <
xsl:
template match="adm:enumeration" mode="java-value-imports">
1008N/A select="/adm:profile[@name='preprocessor']" />
1008N/A <
xsl:
element name="import">
2345N/A <
xsl:
value-
of select="'meta.'" />
2345N/A <
xsl:
call-
template name="name-to-java">
2345N/A <
xsl:
with-
param name="value" 2345N/A <
xsl:
value-
of select="'CfgDefn.'" />
2345N/A <
xsl:
value-
of select="'meta.'" />
1008N/A <
xsl:
call-
template name="name-to-java">
1008N/A <
xsl:
with-
param name="value" 1008N/A <
xsl:
value-
of select="'CfgDefn.'" />
1008N/A <
xsl:
apply-
templates select="." mode="java-value-type" />
1008N/A <
xsl:
template match="adm:enumeration" 1008N/A mode="java-definition-imports">
1008N/A <
xsl:
element name="import">
1008N/A select="/adm:profile[@name='preprocessor']" />
1008N/A <
xsl:
element name="import">
2345N/A <
xsl:
value-
of select="'meta.'" />
2345N/A <
xsl:
call-
template name="name-to-java">
2345N/A <
xsl:
with-
param name="value" 2345N/A <
xsl:
value-
of select="'CfgDefn.'" />
1008N/A <
xsl:
apply-
templates select="." mode="java-value-type" />
1008N/A <
xsl:
template match="adm:enumeration" mode="java-value-type">
1008N/A <
xsl:
call-
template name="name-to-java">
1008N/A <
xsl:
with-
param name="value" select="../../@name" />
1008N/A <
xsl:
template match="adm:enumeration" mode="java-definition-type">
1008N/A <
xsl:
value-
of select="'EnumPropertyDefinition'" />
1008N/A <
xsl:
template match="adm:enumeration" 1008N/A mode="java-definition-generic-type">
1008N/A <
xsl:
apply-
templates select="." mode="java-value-type" />
1008N/A <
xsl:
template match="adm:enumeration" mode="java-definition-ctor">
1008N/A <
xsl:
apply-
templates select="." mode="java-value-type" />
1008N/A <
xsl:
value-
of select="'.class);
'" />