package-info.xsl revision 3215
479N/A<!--
479N/A ! CDDL HEADER START
479N/A !
479N/A ! The contents of this file are subject to the terms of the
479N/A ! Common Development and Distribution License, Version 1.0 only
479N/A ! (the "License"). You may not use this file except in compliance
479N/A ! with the License.
479N/A !
479N/A ! You can obtain a copy of the license at
479N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
479N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
479N/A ! See the License for the specific language governing permissions
479N/A ! and limitations under the License.
479N/A !
479N/A ! When distributing Covered Code, include this CDDL HEADER in each
479N/A ! file and include the License file at
479N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
479N/A ! add the following below this CDDL HEADER, with the fields enclosed
479N/A ! by brackets "[]" replaced with your own identifying information:
873N/A ! Portions Copyright [yyyy] [name of copyright owner]
479N/A !
479N/A ! CDDL HEADER END
479N/A !
479N/A !
479N/A ! Copyright 2008 Sun Microsystems, Inc.
873N/A ! -->
479N/A<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
479N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
479N/A <xsl:import href="java-utilities.xsl" />
479N/A <xsl:output method="text" encoding="us-ascii" />
479N/A <!--
479N/A Global parameter: the sub-package name. Either 'meta', 'client', or 'server'.
479N/A -->
479N/A <xsl:param name="type" select="'.'" />
479N/A <!--
479N/A Main document parsing template.
479N/A -->
619N/A <xsl:template match="/">
619N/A <xsl:call-template name="copyright-notice" />
619N/A <xsl:text>&#xa;</xsl:text>
619N/A <xsl:text>&#xa;</xsl:text>
619N/A <xsl:text>&#xa;</xsl:text>
619N/A <xsl:value-of select="'/**&#xa;'" />
619N/A <xsl:choose>
619N/A <xsl:when test="$type='meta'">
619N/A <xsl:call-template name="add-java-comment">
619N/A <xsl:with-param name="indent-text" select="' *'" />
619N/A <xsl:with-param name="content"
619N/A select="concat('Provides introspection interfaces for the ',
619N/A normalize-space(adm:package/adm:synopsis),
619N/A ' This package provides access to meta-',
619N/A 'information about the managed objects, their ',
2976N/A 'properties, their relationships with other ',
2976N/A 'managed objects, and their inheritance model.')" />
2976N/A </xsl:call-template>
2976N/A </xsl:when>
2976N/A <xsl:when test="$type='client'">
2976N/A <xsl:call-template name="add-java-comment">
479N/A <xsl:with-param name="indent-text" select="' *'" />
2976N/A <xsl:with-param name="content"
479N/A select="concat('Provides client-side interfaces for querying ',
479N/A 'and managing the ',
2976N/A normalize-space(adm:package/adm:synopsis),
2976N/A ' Applications can use the interfaces defined ',
'within this package to retrieve, list, create, ',
'and remove managed objects, as well as query ',
'and update their properties.')" />
</xsl:call-template>
</xsl:when>
<xsl:when test="$type='server'">
<xsl:call-template name="add-java-comment">
<xsl:with-param name="indent-text" select="' *'" />
<xsl:with-param name="content"
select="concat('Provides server-side interfaces for accessing ',
'the ', normalize-space(adm:package/adm:synopsis),
' Components within the server can use the ',
'interfaces defined within this package to query ',
'the properties of the managed objects and ',
'register to be notified when managed objects are ',
'added, removed, or modified.')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
<xsl:value-of
select="concat('Invalid package-info sub-package name: ', $type)" />
</xsl:message>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="' */&#xa;'" />
<xsl:value-of select="concat('@org.opends.server.types.PublicAPI(&#xa;',
' 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>