package-info.xsl revision 3215
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 ! You can obtain a copy of the license at 0N/A ! See the License for the specific language governing permissions 0N/A ! and limitations under the License. 0N/A ! When distributing Covered Code, include this CDDL HEADER in each 0N/A ! file and include the License file at 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] 0N/A ! Copyright 2008 Sun Microsystems, Inc. 0N/A <
xsl:
output method="text" encoding="us-ascii" />
0N/A Global parameter: the sub-package name. Either 'meta', 'client', or 'server'. 0N/A <
xsl:
param name="type" select="'.'" />
0N/A Main document parsing template. 0N/A <
xsl:
template match="/">
0N/A <
xsl:
call-
template name="copyright-notice" />
0N/A <
xsl:
text>
</
xsl:
text>
0N/A <
xsl:
text>
</
xsl:
text>
0N/A <
xsl:
text>
</
xsl:
text>
0N/A <
xsl:
value-
of select="'/**
'" />
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 ' 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 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 ' 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 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 ' 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:
message terminate="yes">
0N/A select="concat('Invalid package-info sub-package name: ', $type)" />
0N/A <
xsl:
value-
of select="' */
'" />
' mayInstantiate=false,
', ' mayExtend=false,
', ' mayInvoke=true)
')"/>
select="concat('package ', adm:package/@name, '.', $type, ';
')" />