java-class.xsl revision 3215
0N/A<!--
1472N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, include this CDDL HEADER in each
0N/A ! file and include the License file at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
1472N/A ! by brackets "[]" replaced with your own identifying information:
1472N/A ! Portions Copyright [yyyy] [name of copyright owner]
1472N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A !
0N/A ! Copyright 2008 Sun Microsystems, Inc.
0N/A ! -->
0N/A<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
727N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
727N/A <!--
727N/A Templates for processing java class properties.
727N/A -->
727N/A <xsl:template match="adm:java-class" mode="java-value-type">
727N/A <xsl:value-of select="'String'" />
727N/A </xsl:template>
0N/A <xsl:template match="adm:java-class" mode="java-definition-type">
727N/A <xsl:value-of select="'ClassPropertyDefinition'" />
727N/A </xsl:template>
727N/A <xsl:template match="adm:java-class" mode="java-definition-ctor">
727N/A <xsl:for-each select="adm:instance-of">
727N/A <!--
727N/A The first instance of element added to the definition
727N/A will become the primary type for the class. This first
727N/A element is guaranteed to be the first instance-of field
727N/A appearing in the property's definition heirarchy working
727N/A up from the bottom.
727N/A -->
727N/A <xsl:value-of
727N/A select="concat(' builder.addInstanceOf(&quot;',
727N/A normalize-space(), '&quot;);&#xa;')" />
727N/A </xsl:for-each>
727N/A </xsl:template>
727N/A</xsl:stylesheet>
727N/A