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