package-info.xsl revision 3215
0N/A<!--
2362N/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
2362N/A ! by brackets "[]" replaced with your own identifying information:
2362N/A ! Portions Copyright [yyyy] [name of copyright owner]
2362N/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"
0N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
0N/A <xsl:import href="java-utilities.xsl" />
0N/A <xsl:output method="text" encoding="us-ascii" />
0N/A <!--
0N/A Global parameter: the sub-package name. Either 'meta', 'client', or 'server'.
0N/A -->
0N/A <xsl:param name="type" select="'.'" />
0N/A <!--
0N/A Main document parsing template.
0N/A -->
0N/A <xsl:template match="/">
0N/A <xsl:call-template name="copyright-notice" />
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of select="'/**&#xa;'" />
0N/A <xsl:choose>
0N/A <xsl:when test="$type='meta'">
0N/A <xsl:call-template name="add-java-comment">
0N/A <xsl:with-param name="indent-text" select="' *'" />
0N/A <xsl:with-param name="content"
0N/A select="concat('Provides introspection interfaces for the ',
0N/A normalize-space(adm:package/adm:synopsis),
0N/A ' This package provides access to meta-',
0N/A 'information about the managed objects, their ',
0N/A 'properties, their relationships with other ',
0N/A 'managed objects, and their inheritance model.')" />
0N/A </xsl:call-template>
0N/A </xsl:when>
0N/A <xsl:when test="$type='client'">
0N/A <xsl:call-template name="add-java-comment">
0N/A <xsl:with-param name="indent-text" select="' *'" />
0N/A <xsl:with-param name="content"
0N/A select="concat('Provides client-side interfaces for querying ',
0N/A 'and managing the ',
0N/A normalize-space(adm:package/adm:synopsis),
0N/A ' Applications can use the interfaces defined ',
0N/A 'within this package to retrieve, list, create, ',
0N/A 'and remove managed objects, as well as query ',
0N/A 'and update their properties.')" />
0N/A </xsl:call-template>
0N/A </xsl:when>
0N/A <xsl:when test="$type='server'">
0N/A <xsl:call-template name="add-java-comment">
0N/A <xsl:with-param name="indent-text" select="' *'" />
0N/A <xsl:with-param name="content"
0N/A select="concat('Provides server-side interfaces for accessing ',
0N/A 'the ', normalize-space(adm:package/adm:synopsis),
0N/A ' Components within the server can use the ',
0N/A 'interfaces defined within this package to query ',
0N/A 'the properties of the managed objects and ',
0N/A 'register to be notified when managed objects are ',
0N/A 'added, removed, or modified.')" />
0N/A </xsl:call-template>
0N/A </xsl:when>
0N/A <xsl:otherwise>
0N/A <xsl:message terminate="yes">
0N/A <xsl:value-of
0N/A select="concat('Invalid package-info sub-package name: ', $type)" />
0N/A </xsl:message>
0N/A </xsl:otherwise>
0N/A </xsl:choose>
0N/A <xsl:value-of select="' */&#xa;'" />
0N/A <xsl:value-of select="concat('@org.opends.server.types.PublicAPI(&#xa;',
0N/A ' stability=org.opends.server.types.StabilityLevel.VOLATILE,&#xa;',
' mayInstantiate=false,&#xa;',
' mayExtend=false,&#xa;',
' mayInvoke=true)&#xa;')"/>
<xsl:value-of
select="concat('package ', adm:package/@name, '.', $type, ';&#xa;')" />
</xsl:template>
</xsl:stylesheet>