metaMO.xsl revision 3065
0N/A<!--
0N/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,
873N/A ! add the following below this CDDL HEADER, with the fields enclosed
0N/A ! by brackets "[]" replaced with your own identifying information:
0N/A ! Portions Copyright [yyyy] [name of copyright owner]
0N/A !
0N/A ! CDDL HEADER END
0N/A !
4044N/A !
0N/A ! Portions Copyright 2007-2008 Sun Microsystems, Inc.
0N/A ! -->
0N/A<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
0N/A xmlns:admpp="http://www.opends.org/admin-preprocessor"
0N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0N/A xmlns:exsl="http://exslt.org/common">
0N/A <xsl:import href="java-utilities.xsl" />
0N/A <xsl:import href="preprocessor.xsl" />
0N/A <xsl:import href="property-types.xsl" />
2636N/A <xsl:output method="text" encoding="us-ascii" />
2636N/A <!--
2636N/A Template for generating the class declaration.
2636N/A -->
0N/A <xsl:template name="generate-meta-class-declaration">
2636N/A <xsl:value-of select="'/**&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content"
2636N/A select="concat('An interface for querying the ', $this-ufn,
0N/A ' managed object definition meta information.')" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="' * &lt;p&gt;&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content" select="$this/adm:synopsis" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="' */&#xa;'" />
2636N/A <xsl:value-of
2636N/A select="concat('public final class ',
2636N/A $this-java-class,
2636N/A 'CfgDefn extends ')" />
2636N/A <xsl:choose>
2636N/A <xsl:when test="$this-is-abstract">
2636N/A <xsl:value-of
2636N/A select="concat('AbstractManagedObjectDefinition&lt;',
2636N/A $this-java-class, 'CfgClient, ',
2636N/A $this-java-class, 'Cfg&gt; {&#xa;')" />
0N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
2636N/A select="concat('ManagedObjectDefinition&lt;',
0N/A $this-java-class, 'CfgClient, ',
0N/A $this-java-class, 'Cfg&gt; {&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:template>
0N/A <!--
2636N/A Template for generating the meta class body.
2636N/A -->
2636N/A <xsl:template name="generate-meta-class-body">
2636N/A <!--
2636N/A Singleton configuration definition instance.
2636N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' // The singleton configuration definition instance.&#xa;',
2636N/A ' private static final ',
2636N/A $this-java-class ,
2636N/A 'CfgDefn INSTANCE = new ', $this-java-class, 'CfgDefn();&#xa;')" />
2636N/A <!--
2636N/A Generate enumerations defined by this managed object..
2636N/A -->
2636N/A <xsl:for-each
2636N/A select="$this-local-properties[adm:syntax/adm:enumeration and not(adm:profile[@name='preprocessor']/adm:first-defined-in)]">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:if
2636N/A test="not(adm:profile[@name='preprocessor']/admpp:first-defined-in)">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template name="generate-enumeration" />
0N/A </xsl:if>
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Define application tags if this is the root configuration.
0N/A -->
0N/A <xsl:if test="$this-is-root">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' // Define managed object tags.&#xa;'" />
2636N/A <xsl:value-of select="' static {&#xa;'" />
2636N/A <xsl:for-each select="$this/adm:tag-definition">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:value-of
2636N/A select="concat(' Tag.define(&quot;', @name, '&quot;);&#xa;')" />
0N/A </xsl:for-each>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:if>
2636N/A <!--
2636N/A Generate declarations for properties defined or
2636N/A overridden by this managed object.
2636N/A -->
2636N/A <xsl:for-each select="$this-local-properties">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-property-declaration" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Generate declarations for relations.
2636N/A -->
2636N/A <xsl:for-each select="$this-local-relations">
2636N/A <xsl:sort select="@name" />
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-relation-declaration" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Generate constructors for properties defined or
2636N/A overridden by this managed object.
2636N/A -->
2636N/A <xsl:for-each select="$this-local-properties">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template name="generate-property-constructor" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Generate constructors for relations.
2636N/A -->
0N/A <xsl:for-each select="$this-local-relations">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-relation-constructor" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Register any optins associated with this managed object definition.
0N/A -->
2636N/A <xsl:if test="$this-is-advanced or $this-is-hidden">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="' // Register the options associated with this managed object definition.&#xa;'" />
2636N/A <xsl:value-of select="' static {&#xa;'" />
2636N/A <xsl:if test="$this-is-advanced">
0N/A <xsl:value-of
2636N/A select="concat(' INSTANCE.registerOption(ManagedObjectOption.ADVANCED);&#xa;')" />
2636N/A </xsl:if>
2636N/A <xsl:if test="$this-is-hidden">
0N/A <xsl:value-of
2636N/A select="concat(' INSTANCE.registerOption(ManagedObjectOption.HIDDEN);&#xa;')" />
2636N/A </xsl:if>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:if>
2636N/A <!--
2636N/A Register any tags associated with this managed object definition.
2636N/A -->
2636N/A <xsl:if test="$this/adm:tag">
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="' // Register the tags associated with this managed object definition.&#xa;'" />
2636N/A <xsl:value-of select="' static {&#xa;'" />
2636N/A <xsl:for-each select="$this/adm:tag">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:value-of
2636N/A select="concat(' INSTANCE.registerTag(Tag.valueOf(&quot;', @name, '&quot;));&#xa;')" />
2636N/A </xsl:for-each>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:if>
2636N/A <!--
2636N/A Register any constraints associated with this managed object definition.
2636N/A -->
2636N/A <xsl:if test="$this/adm:constraint">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="' // Register the constraints associated with this managed object definition.&#xa;'" />
2636N/A <xsl:value-of select="' static {&#xa;'" />
2636N/A <xsl:for-each select="$this/adm:constraint">
2636N/A <xsl:value-of
2636N/A select="concat(' INSTANCE.registerConstraint(new GenericConstraint(INSTANCE, ', position(), ', ')" />
2636N/A <xsl:apply-templates select="adm:condition/*"
2636N/A mode="compile-condition" />
2636N/A <xsl:value-of select="'));&#xa;'" />
2636N/A </xsl:for-each>
2636N/A <xsl:value-of select="' }&#xa;'" />
0N/A </xsl:if>
2636N/A <!--
2636N/A Configuration definition singleton getter.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' /**&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content"
2636N/A select="concat('Get the ', $this-ufn,' configuration definition singleton.')" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="' *&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="indent-text2" select="' * '" />
2636N/A <xsl:with-param name="content"
2636N/A select="concat('@return Returns the ', $this-ufn,
2636N/A ' configuration definition singleton.')" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="' */&#xa;'" />
2636N/A <xsl:value-of
2636N/A select="concat(' public static ',
0N/A $this-java-class ,
2636N/A 'CfgDefn getInstance() {&#xa;',
2636N/A ' return INSTANCE;&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <!--
2636N/A Private constructor.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * Private constructor.&#xa;',
2636N/A ' */&#xa;',
2636N/A ' private ',
2636N/A $this-java-class ,
2636N/A 'CfgDefn() {&#xa;')" />
2636N/A <xsl:choose>
2636N/A <xsl:when test="boolean($this/@extends)">
2636N/A <xsl:value-of
2636N/A select="concat(' super(&quot;',
2636N/A $this/@name,
2636N/A '&quot;, ',
2636N/A $parent-java-class,
2636N/A 'CfgDefn.getInstance());&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
2636N/A select="concat(' super(&quot;',
2636N/A $this/@name,
2636N/A '&quot;, TopCfgDefn.getInstance());&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A <!--
2636N/A Create configuration view factory methods for non-abstract definitions
2636N/A -->
2636N/A <xsl:if test="not($this-is-abstract)">
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <!--
2636N/A Generate configuration client factory method.
2636N/A -->
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ',
0N/A $this-java-class,
2636N/A 'CfgClient createClientConfiguration(&#xa;',
2636N/A ' ManagedObject&lt;? extends ',
2636N/A $this-java-class,
2636N/A 'CfgClient&gt; impl) {&#xa;',
2636N/A ' return new ',
2636N/A $this-java-class ,
2636N/A 'CfgClientImpl(impl);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <!--
2636N/A Generate configuration server factory method.
2636N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ',
0N/A $this-java-class,
0N/A 'Cfg createServerConfiguration(&#xa;',
2636N/A ' ServerManagedObject&lt;? extends ',$this-java-class,'Cfg&gt; impl) {&#xa;',
2636N/A ' return new ',
2636N/A $this-java-class ,
2636N/A 'CfgServerImpl(impl);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <!--
4005N/A Generate configuration server class getter..
4005N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public Class&lt;',
2636N/A $this-java-class,
2636N/A 'Cfg&gt; getServerConfigurationClass() {&#xa;',
2636N/A ' return ',
2636N/A $this-java-class ,
2636N/A 'Cfg.class;&#xa;',
2636N/A ' }&#xa;')" />
2636N/A </xsl:if>
2636N/A <!--
2636N/A Generate property definition getters for all properties.
2636N/A -->
2636N/A <xsl:for-each select="$this-all-properties">
0N/A <xsl:sort select="@name" />
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template name="generate-property-definition-getter" />
0N/A </xsl:for-each>
2636N/A <!--
2636N/A Generate relation definition getters for all relations.
2636N/A -->
0N/A <xsl:for-each select="$this-all-relations">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-relation-definition-getter" />
2636N/A </xsl:for-each>
2636N/A <!--
0N/A Managed object class implementations.
2636N/A -->
2636N/A <xsl:if test="not($this-is-abstract)">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-client-impl-class" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-server-impl-class" />
2636N/A </xsl:if>
2636N/A </xsl:template>
2636N/A <!--
0N/A Generate managed object client class implementation.
0N/A -->
2636N/A <xsl:template name="generate-client-impl-class">
2636N/A <!--
2636N/A Declaration.
0N/A -->
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * Managed object client implementation.&#xa;',
2636N/A ' */&#xa;',
0N/A ' private static class ',
0N/A $this-java-class ,
2636N/A 'CfgClientImpl implements&#xa; ',
2636N/A $this-java-class ,
0N/A 'CfgClient {&#xa;')" />
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <!--
2636N/A Private instance.
2636N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' // Private implementation.&#xa;',
2636N/A ' private ManagedObject&lt;? extends ',
2636N/A $this-java-class,
2636N/A 'CfgClient&gt; impl;&#xa;')" />
2636N/A <!--
2636N/A Private constructor.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' // Private constructor.&#xa;',
2636N/A ' private ',
2636N/A $this-java-class,
2636N/A 'CfgClientImpl(&#xa;',
2636N/A ' ManagedObject&lt;? extends ',
2636N/A $this-java-class,
2636N/A 'CfgClient&gt; impl) {&#xa;',
2636N/A ' this.impl = impl;&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <!--
2636N/A Getters/Setters for all properties.
2636N/A -->
2636N/A <xsl:for-each select="$this-all-properties">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template
2636N/A name="generate-property-getter-implementation">
2636N/A <xsl:with-param name="interface" select="'client'" />
2636N/A </xsl:call-template>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template name="generate-property-setter-implementation" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Relation methods.
0N/A -->
2636N/A <xsl:for-each select="$this-all-relations">
2636N/A <xsl:sort select="@name" />
723N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-client-relation-methods" />
2636N/A </xsl:for-each>
2636N/A <!--
2636N/A Managed object definition getter.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ManagedObjectDefinition&lt;? extends ', $this-java-class,'CfgClient, ? extends ', $this-java-class,'Cfg&gt; definition() {&#xa;',
0N/A ' return INSTANCE;&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <!--
2636N/A Property provider view.
2636N/A -->
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
0N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public PropertyProvider properties() {&#xa;',
2636N/A ' return impl;&#xa;',
0N/A ' }&#xa;')" />
0N/A <!--
2636N/A Commit method.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void commit() throws ManagedObjectAlreadyExistsException,&#xa;',
2636N/A ' MissingMandatoryPropertiesException, ConcurrentModificationException,&#xa;',
2636N/A ' OperationRejectedException, AuthorizationException,&#xa;',
2636N/A ' CommunicationException {&#xa;',
2636N/A ' impl.commit();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:template>
0N/A <!--
2636N/A Generate managed object server class implementation.
2636N/A -->
2636N/A <xsl:template name="generate-server-impl-class">
0N/A <!--
2636N/A Declaration.
2636N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
0N/A ' * Managed object server implementation.&#xa;',
2636N/A ' */&#xa;',
2636N/A ' private static class ',
2636N/A $this-java-class ,
2636N/A 'CfgServerImpl implements&#xa; ',
0N/A $this-java-class ,
2636N/A 'Cfg {&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <!--
2636N/A Private instance.
0N/A -->
2636N/A <xsl:value-of
2636N/A select="concat(' // Private implementation.&#xa;',
2636N/A ' private ServerManagedObject&lt;? extends ', $this-java-class, 'Cfg&gt; impl;&#xa;')" />
2636N/A <!--
0N/A Private members for each property.
2636N/A -->
2636N/A <xsl:for-each select="$this-all-properties">
2636N/A <xsl:sort select="@name" />
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' // The value of the &quot;', @name, '&quot; property.&#xa;')" />
2636N/A <xsl:value-of select="' private final '" />
2636N/A <xsl:choose>
0N/A <xsl:when test="string(@multi-valued) != 'true'">
0N/A <xsl:choose>
2636N/A <xsl:when test="adm:default-behavior/adm:defined">
2636N/A <!--
0N/A The property is guaranteed to contain a value since there is a
0N/A well-defined default value.
2636N/A -->
2636N/A <xsl:call-template
2636N/A name="get-property-java-primitive-type" />
0N/A </xsl:when>
0N/A <xsl:when test="@mandatory = 'true'">
2636N/A <!--
2636N/A The property is guaranteed to contain a value in the server interface.
2636N/A -->
0N/A <xsl:call-template
0N/A name="get-property-java-primitive-type" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:call-template name="get-property-java-type" />
0N/A </xsl:otherwise>
0N/A </xsl:choose>
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of select="'SortedSet&lt;'" />
0N/A <xsl:call-template name="get-property-java-type" />
0N/A <xsl:value-of select="'&gt;'" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:value-of select="' p'" />
2636N/A <xsl:call-template name="name-to-java">
0N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="';&#xa;'" />
2636N/A </xsl:for-each>
0N/A <!--
0N/A Private constructor.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' // Private constructor.&#xa;',
2636N/A ' private ',
2636N/A $this-java-class,
2636N/A 'CfgServerImpl(ServerManagedObject&lt;? extends ', $this-java-class, 'Cfg&gt; impl) {&#xa;',
2636N/A ' this.impl = impl;&#xa;')" />
2636N/A <xsl:for-each select="$this-all-properties">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:variable name="java-prop-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:value-of
2636N/A select="concat(' this.p', $java-prop-name, ' = ')" />
2636N/A <xsl:choose>
2636N/A <xsl:when test="string(@multi-valued) != 'true'">
0N/A <xsl:value-of
0N/A select="concat('impl.getPropertyValue(INSTANCE.get', $java-prop-name , 'PropertyDefinition());&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
2636N/A select="concat('impl.getPropertyValues(INSTANCE.get', $java-prop-name , 'PropertyDefinition());&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:for-each>
2636N/A <xsl:value-of select="' }&#xa;'" />
0N/A <!--
0N/A Generate all the change listener methods - one for each managed
2636N/A object in the hierarchy.
2636N/A -->
2636N/A <xsl:if test="not($this-is-root)">
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-change-listener" />
2636N/A </xsl:if>
2636N/A <!--
2636N/A Getters for all properties.
2636N/A -->
2636N/A <xsl:for-each select="$this-all-properties">
2636N/A <xsl:sort select="@name" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template
2636N/A name="generate-property-getter-implementation">
2636N/A <xsl:with-param name="interface" select="'server'" />
2636N/A </xsl:call-template>
2636N/A </xsl:for-each>
2636N/A <!--
0N/A Relation methods.
2636N/A -->
2636N/A <xsl:for-each select="$this-all-relations">
2636N/A <xsl:sort select="@name" />
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:call-template name="generate-server-relation-methods" />
0N/A </xsl:for-each>
2636N/A <!--
2636N/A Configuration class getter.
0N/A -->
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public Class&lt;? extends ', $this-java-class,'Cfg&gt; configurationClass() {&#xa;',
2636N/A ' return ', $this-java-class, 'Cfg.class;&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <!--
2636N/A Configuration entry DN getter.
2636N/A -->
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public DN dn() {&#xa;',
2636N/A ' return impl.getDN();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Generate a property definition constructor.
2636N/A -->
0N/A <xsl:template name="generate-property-declaration">
0N/A <xsl:variable name="java-prop-name">
2636N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:variable name="type">
2636N/A <xsl:call-template name="get-property-definition-type" />
2636N/A </xsl:variable>
2636N/A <xsl:variable name="generic-type">
2636N/A <xsl:call-template name="get-property-definition-generic-type" />
0N/A </xsl:variable>
2636N/A <xsl:variable name="pdtype">
2636N/A <xsl:choose>
0N/A <xsl:when test="string-length($generic-type) != 0">
0N/A <xsl:value-of
2636N/A select="concat($type, '&lt;', $generic-type, '&gt;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of select="$type" />
0N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
0N/A select="concat(' // The &quot;',
2636N/A @name,
2636N/A '&quot; property definition.&#xa;',
2636N/A ' private static final ', $pdtype, ' PD_', $java-prop-name, ';&#xa;')" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Generate a property definition constructor.
2636N/A -->
2636N/A <xsl:template name="generate-property-constructor">
0N/A <xsl:variable name="java-prop-name">
0N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="type">
2636N/A <xsl:call-template name="get-property-definition-type" />
2636N/A </xsl:variable>
2636N/A <xsl:variable name="generic-type">
0N/A <xsl:call-template name="get-property-definition-generic-type" />
0N/A </xsl:variable>
2636N/A <xsl:variable name="value-type">
2636N/A <xsl:call-template name="get-property-java-type" />
2636N/A </xsl:variable>
0N/A <xsl:value-of
2636N/A select="concat(' // Build the &quot;', @name, '&quot; property definition.&#xa;',
2636N/A ' static {&#xa;')" />
2636N/A <xsl:choose>
2636N/A <xsl:when test="string-length($generic-type) != 0">
0N/A <xsl:value-of
2636N/A select="concat(' ', $type, '.Builder&lt;', $generic-type, '&gt; builder = ', $type, '.createBuilder(INSTANCE, &quot;',@name, '&quot;);&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
0N/A select="concat(' ', $type, '.Builder builder = ', $type, '.createBuilder(INSTANCE, &quot;',@name, '&quot;);&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:if test="@multi-valued='true'">
2636N/A <xsl:value-of
0N/A select="' builder.setOption(PropertyOption.MULTI_VALUED);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:if test="@read-only='true'">
2636N/A <xsl:value-of
2636N/A select="' builder.setOption(PropertyOption.READ_ONLY);&#xa;'" />
0N/A </xsl:if>
2636N/A <xsl:if test="@monitoring='true'">
2636N/A <xsl:value-of
2636N/A select="' builder.setOption(PropertyOption.MONITORING);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:if test="@mandatory='true'">
2636N/A <xsl:value-of
2636N/A select="' builder.setOption(PropertyOption.MANDATORY);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:if test="@hidden='true'">
2636N/A <xsl:value-of
2636N/A select="' builder.setOption(PropertyOption.HIDDEN);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:if test="@advanced='true'">
2636N/A <xsl:value-of
0N/A select="' builder.setOption(PropertyOption.ADVANCED);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:variable name="action-type">
2636N/A <xsl:choose>
0N/A <xsl:when test="adm:requires-admin-action">
0N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value"
2636N/A select="local-name(adm:requires-admin-action/*)" />
2636N/A </xsl:call-template>
0N/A </xsl:when>
0N/A <xsl:otherwise>
2636N/A <xsl:value-of select="'NONE'" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
0N/A <xsl:value-of
2636N/A select="concat(' builder.setAdministratorAction(new AdministratorAction(AdministratorAction.Type.', $action-type, ', INSTANCE, &quot;', @name, '&quot;));&#xa;')" />
2636N/A <xsl:choose>
2636N/A <xsl:when
2636N/A test="not(adm:default-behavior) or adm:default-behavior/adm:undefined">
2636N/A <xsl:value-of
2636N/A select="concat(' builder.setDefaultBehaviorProvider(new UndefinedDefaultBehaviorProvider&lt;', $value-type,'&gt;());&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:default-behavior/adm:alias">
2636N/A <xsl:value-of
2636N/A select="concat(' builder.setDefaultBehaviorProvider(new AliasDefaultBehaviorProvider&lt;', $value-type,'&gt;(INSTANCE, &quot;', @name, '&quot;));&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:default-behavior/adm:defined">
2636N/A <xsl:value-of
2636N/A select="concat(' DefaultBehaviorProvider&lt;', $value-type,'&gt; provider = ',
2636N/A 'new DefinedDefaultBehaviorProvider&lt;', $value-type,'&gt;(')" />
2636N/A <xsl:for-each
2636N/A select="adm:default-behavior/adm:defined/adm:value">
2636N/A <xsl:value-of
0N/A select="concat('&quot;', normalize-space(), '&quot;')" />
0N/A <xsl:if test="position() != last()">
2636N/A <xsl:value-of select="', '" />
2636N/A </xsl:if>
2636N/A </xsl:for-each>
2636N/A <xsl:value-of select="');&#xa;'" />
2636N/A <xsl:value-of
2636N/A select="' builder.setDefaultBehaviorProvider(provider);&#xa;'" />
2636N/A </xsl:when>
2636N/A <xsl:when
2636N/A test="adm:default-behavior/adm:inherited/adm:relative">
2636N/A <xsl:value-of
2636N/A select="concat(' DefaultBehaviorProvider&lt;', $value-type,'&gt; provider = ',
2636N/A 'new RelativeInheritedDefaultBehaviorProvider&lt;', $value-type,'&gt;(')" />
2636N/A <xsl:variable name="managed-object-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value"
2636N/A select="adm:default-behavior/adm:inherited/adm:relative/@managed-object-name" />
2636N/A </xsl:call-template>
0N/A </xsl:variable>
2636N/A <xsl:variable name="property-name"
0N/A select="adm:default-behavior/adm:inherited/adm:relative/@property-name" />
2636N/A <xsl:variable name="offset"
0N/A select="adm:default-behavior/adm:inherited/adm:relative/@offset" />
0N/A <xsl:value-of
2636N/A select="concat($managed-object-name, 'CfgDefn.getInstance(), &quot;', $property-name, '&quot;, ', $offset, ');&#xa;')" />
2636N/A <xsl:value-of
2636N/A select="' builder.setDefaultBehaviorProvider(provider);&#xa;'" />
2636N/A </xsl:when>
2636N/A <xsl:when
2636N/A test="adm:default-behavior/adm:inherited/adm:absolute">
2636N/A <xsl:value-of
2636N/A select="concat(' DefaultBehaviorProvider&lt;', $value-type,'&gt; provider = ',
0N/A 'new AbsoluteInheritedDefaultBehaviorProvider&lt;', $value-type,'&gt;(')" />
0N/A <xsl:variable name="property-name"
2636N/A select="adm:default-behavior/adm:inherited/adm:absolute/@property-name" />
2636N/A <xsl:variable name="path"
2636N/A select="adm:default-behavior/adm:inherited/adm:absolute/@path" />
0N/A <xsl:value-of
0N/A select="concat('&quot;', $path, '&quot;, &quot;', $property-name, '&quot;);&#xa;')" />
2636N/A <xsl:value-of
2636N/A select="' builder.setDefaultBehaviorProvider(provider);&#xa;'" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
2636N/A select="concat('Unrecognized default behavior type for property &quot;', @name,
2636N/A '&quot;.')" />
2636N/A </xsl:message>
2636N/A </xsl:otherwise>
0N/A </xsl:choose>
2636N/A <xsl:call-template name="get-property-definition-ctor" />
2636N/A <xsl:value-of
2636N/A select="concat(' PD_', $java-prop-name, ' = builder.getInstance();&#xa;')" />
2636N/A <xsl:value-of
535N/A select="concat(' INSTANCE.registerPropertyDefinition(PD_', $java-prop-name, ');&#xa;')" />
0N/A <xsl:call-template name="get-property-definition-post-ctor" />
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Generate a relation definition declaration.
0N/A -->
0N/A <xsl:template name="generate-relation-declaration">
2636N/A <xsl:variable name="relation-name">
2636N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:value-of select="adm:one-to-many/@plural-name" />
0N/A </xsl:when>
0N/A <xsl:otherwise>
2636N/A <xsl:value-of select="@name" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
0N/A <xsl:variable name="java-relation-name">
0N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value" select="$relation-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:variable name="java-managed-object-name">
0N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
0N/A select="concat(' // The &quot;',
2636N/A $relation-name,
2636N/A '&quot; relation definition.&#xa;',
2636N/A ' private static final ')" />
0N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-one">
2636N/A <xsl:text>SingletonRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
0N/A <xsl:when test="adm:one-to-zero-or-one">
0N/A <xsl:text>OptionalRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:text>InstantiableRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
2636N/A select="concat('Unknown relation type &quot;', local-name(*), '&quot; in relation &quot;', @name, '&quot;.')" />
2636N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:value-of
2636N/A select="concat($java-managed-object-name, 'CfgClient, ', $java-managed-object-name, 'Cfg&gt; RD_', $java-relation-name, ';&#xa;')" />
0N/A </xsl:template>
2636N/A <!--
2636N/A Generate a relation definition constructor.
2636N/A -->
0N/A <xsl:template name="generate-relation-constructor">
2636N/A <xsl:variable name="relation-name">
2636N/A <xsl:choose>
0N/A <xsl:when test="adm:one-to-many">
0N/A <xsl:value-of select="adm:one-to-many/@plural-name" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of select="@name" />
0N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="java-relation-name">
0N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value" select="$relation-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:variable name="java-managed-object-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:variable name="java-relation-builder-type">
2636N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-one">
2636N/A <xsl:text>SingletonRelationDefinition</xsl:text>
0N/A </xsl:when>
0N/A <xsl:when test="adm:one-to-zero-or-one">
2636N/A <xsl:text>OptionalRelationDefinition</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:text>InstantiableRelationDefinition</xsl:text>
4263N/A </xsl:when>
4263N/A <xsl:otherwise>
4263N/A <xsl:message terminate="yes">
4263N/A <xsl:value-of
4263N/A select="concat('Unknown relation type &quot;', local-name(*), '&quot; in relation &quot;', @name, '&quot;.')" />
0N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:value-of
2636N/A select="concat('.Builder&lt;', $java-managed-object-name, 'CfgClient, ', $java-managed-object-name, 'Cfg&gt;')" />
0N/A </xsl:variable>
2636N/A <xsl:value-of
2636N/A select="concat(' // Build the &quot;', $relation-name, '&quot; relation definition.&#xa;',
2636N/A ' static {&#xa;',
2636N/A ' ', $java-relation-builder-type, ' builder =&#xa;',
0N/A ' new ', $java-relation-builder-type, '(INSTANCE, &quot;', @name, '&quot;, ')" />
2636N/A <xsl:if test="adm:one-to-many">
2636N/A <xsl:value-of
2636N/A select="concat('&quot;', adm:one-to-many/@plural-name, '&quot;, ')" />
2636N/A </xsl:if>
0N/A <xsl:value-of
2636N/A select="concat($java-managed-object-name, 'CfgDefn.getInstance());&#xa;')" />
2636N/A <xsl:if test="adm:one-to-many/@naming-property">
2636N/A <xsl:variable name="java-property-name">
2636N/A <xsl:call-template name="name-to-java">
0N/A <xsl:with-param name="value"
2636N/A select="adm:one-to-many/@naming-property" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
2636N/A select="concat(' builder.setNamingProperty(',
0N/A $java-managed-object-name,
2636N/A 'CfgDefn.getInstance().get',
2636N/A $java-property-name, 'PropertyDefinition());&#xa;')" />
2636N/A </xsl:if>
2636N/A <xsl:for-each select="*/adm:default-managed-object">
0N/A <xsl:variable name="dmo-java-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
2636N/A </xsl:call-template>
0N/A </xsl:variable>
0N/A <xsl:value-of select="' {&#xa;'" />
2636N/A <xsl:value-of
2636N/A select="concat(' DefaultManagedObject.Builder&lt;',
2636N/A $dmo-java-name, 'CfgClient, ',
0N/A $dmo-java-name, 'Cfg&gt; dmoBuilder = new DefaultManagedObject.Builder&lt;',
2636N/A $dmo-java-name, 'CfgClient, ',
2636N/A $dmo-java-name, 'Cfg&gt;(',
2636N/A $dmo-java-name, 'CfgDefn.getInstance());&#xa;')" />
2636N/A <xsl:for-each select="adm:property">
2636N/A <xsl:value-of
2636N/A select="concat(' dmoBuilder.setPropertyValues(&quot;', @name, '&quot;')" />
0N/A <xsl:for-each select="adm:value">
2636N/A <xsl:value-of
2636N/A select="concat(', &quot;', normalize-space(), '&quot;')" />
2636N/A </xsl:for-each>
2636N/A <xsl:value-of select="');&#xa;'" />
0N/A </xsl:for-each>
2636N/A <xsl:choose>
2636N/A <xsl:when test="@name">
2636N/A <xsl:value-of
2636N/A select="concat(' builder.setDefaultManagedObject(&quot;', @name, '&quot;, dmoBuilder.getInstance());&#xa;')" />
0N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
2636N/A select="' builder.setDefaultManagedObject(dmoBuilder.getInstance());&#xa;'" />
0N/A </xsl:otherwise>
0N/A </xsl:choose>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:for-each>
2636N/A <xsl:if test="@advanced='true'">
2636N/A <xsl:value-of
0N/A select="' builder.setOption(RelationOption.ADVANCED);&#xa;'" />
2636N/A </xsl:if>
2636N/A <xsl:if test="@hidden='true'">
2636N/A <xsl:value-of
0N/A select="' builder.setOption(RelationOption.HIDDEN);&#xa;'" />
0N/A </xsl:if>
2636N/A <xsl:value-of
2636N/A select="concat(' RD_', $java-relation-name, ' = builder.getInstance();&#xa;')" />
2636N/A <xsl:value-of
2636N/A select="concat(' INSTANCE.registerRelationDefinition(RD_', $java-relation-name,');&#xa;')" />
0N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Generate a property definition getter for a locally defined
2636N/A or overriden property.
0N/A -->
2636N/A <xsl:template name="generate-property-definition-getter">
2636N/A <xsl:variable name="java-prop-name">
2636N/A <xsl:call-template name="name-to-java">
0N/A <xsl:with-param name="value" select="@name" />
0N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="java-prop-name-constant">
2636N/A <xsl:call-template name="name-to-java-constant">
0N/A <xsl:with-param name="value" select="@name" />
0N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="type">
0N/A <xsl:call-template name="get-property-definition-type" />
0N/A </xsl:variable>
2636N/A <xsl:variable name="generic-type">
2636N/A <xsl:call-template name="get-property-definition-generic-type" />
0N/A </xsl:variable>
0N/A <xsl:variable name="pdtype">
2636N/A <xsl:choose>
2636N/A <xsl:when test="string-length($generic-type) != 0">
2636N/A <xsl:value-of
2636N/A select="concat($type, '&lt;', $generic-type, '&gt;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
0N/A <xsl:value-of select="$type" />
0N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * Get the &quot;',
2636N/A @name,
2636N/A '&quot; property definition.&#xa;')" />
2636N/A <xsl:if test="adm:synopsis">
2636N/A <xsl:value-of select="' * &lt;p&gt;&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
0N/A <xsl:with-param name="content" select="adm:synopsis" />
0N/A </xsl:call-template>
2636N/A </xsl:if>
2636N/A <xsl:if test="adm:description">
2636N/A <xsl:value-of select="' * &lt;p&gt;&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
0N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content" select="adm:description" />
2636N/A </xsl:call-template>
2636N/A </xsl:if>
2636N/A <xsl:choose>
0N/A <xsl:when
2636N/A test="adm:profile[@name='preprocessor']/admpp:last-defined-in[@name=$this-name and @package=$this-package]">
2636N/A <xsl:value-of
2636N/A select="concat(' *&#xa;',
0N/A ' * @return Returns the &quot;',
0N/A @name,
2636N/A '&quot; property definition.&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ',
0N/A $pdtype,
0N/A ' get',
2636N/A $java-prop-name,
2636N/A 'PropertyDefinition() {&#xa;' ,
0N/A ' return PD_',
0N/A $java-prop-name-constant ,
2636N/A ';&#xa;' ,
2636N/A ' }&#xa;')" />
2636N/A </xsl:when>
0N/A <xsl:otherwise>
0N/A <xsl:value-of
2636N/A select="concat(' *&#xa;',
2636N/A ' * @return Returns the &quot;',
2636N/A @name,
0N/A '&quot; property definition.&#xa;',
0N/A ' */&#xa;',
2636N/A ' public ',
2636N/A $pdtype,
2636N/A ' get',
0N/A $java-prop-name,
0N/A 'PropertyDefinition() {&#xa;' ,
2636N/A ' return ',
2636N/A $parent-java-class, 'CfgDefn.getInstance().get',
2636N/A $java-prop-name,
0N/A 'PropertyDefinition();&#xa;',
0N/A ' }&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:template>
0N/A <!--
0N/A Generate a relation definition getter.
2636N/A -->
2636N/A <xsl:template name="generate-relation-definition-getter">
2636N/A <xsl:variable name="relation-name">
0N/A <xsl:choose>
0N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:value-of select="adm:one-to-many/@plural-name" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
0N/A <xsl:value-of select="@name" />
0N/A </xsl:otherwise>
2636N/A </xsl:choose>
0N/A </xsl:variable>
2636N/A <xsl:variable name="java-relation-name">
0N/A <xsl:call-template name="name-to-java">
0N/A <xsl:with-param name="value" select="$relation-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="java-relation-name-constant">
0N/A <xsl:call-template name="name-to-java-constant">
0N/A <xsl:with-param name="value" select="$relation-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
0N/A ' * Get the &quot;',
2636N/A $relation-name,
2636N/A '&quot; relation definition.&#xa;',
2636N/A ' *&#xa;',
0N/A ' * @return Returns the &quot;',
4156N/A $relation-name,
4156N/A '&quot; relation definition.&#xa;',
4156N/A ' */&#xa;',
4156N/A ' public ')" />
4156N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-one">
2636N/A <xsl:text>SingletonRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-zero-or-one">
2636N/A <xsl:text>OptionalRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:text>InstantiableRelationDefinition&lt;</xsl:text>
2636N/A </xsl:when>
864N/A <xsl:otherwise>
0N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
2636N/A select="concat('Unknown relation type &quot;', local-name(*), '&quot; in relation &quot;', @name, '&quot;.')" />
2636N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:variable name="java-managed-object-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:choose>
2636N/A <xsl:when
2636N/A test="adm:profile[@name='preprocessor']/admpp:last-defined-in[@name=$this-name and @package=$this-package]">
2636N/A <xsl:value-of
2636N/A select="concat($java-managed-object-name, 'CfgClient,',
2636N/A $java-managed-object-name, 'Cfg&gt; get',
2636N/A $java-relation-name,
2636N/A 'RelationDefinition() {&#xa;' ,
2636N/A ' return RD_',
0N/A $java-relation-name-constant,
2636N/A ';&#xa;' ,
2636N/A ' }&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of
2636N/A select="concat($java-managed-object-name, 'CfgClient,',
2636N/A $java-managed-object-name, 'Cfg&gt; get',
2636N/A $java-relation-name,
2636N/A 'RelationDefinition() {&#xa;' ,
2636N/A ' return ',
2636N/A $parent-java-class, 'CfgDefn.getInstance().get',
2636N/A $java-relation-name,
2636N/A 'RelationDefinition();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
0N/A </xsl:template>
0N/A <!--
2636N/A Generate client relation methods.
2636N/A -->
2636N/A <xsl:template name="generate-client-relation-methods">
2636N/A <xsl:variable name="name" select="@name" />
2636N/A <xsl:variable name="java-relation-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$name" />
2636N/A </xsl:call-template>
0N/A </xsl:variable>
0N/A <xsl:variable name="java-class-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
2636N/A </xsl:call-template>
0N/A </xsl:variable>
0N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-one">
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
0N/A ' * {@inheritDoc}&#xa;',
0N/A ' */&#xa;',
2636N/A ' public ', $java-class-name, 'CfgClient get', $java-relation-name, '()&#xa;',
2636N/A ' throws DefinitionDecodingException, ManagedObjectDecodingException,&#xa;',
2636N/A ' ManagedObjectNotFoundException, ConcurrentModificationException,&#xa;',
2636N/A ' AuthorizationException, CommunicationException {&#xa;',
0N/A ' return impl.getChild(INSTANCE.get', $java-relation-name,'RelationDefinition()).getConfiguration();&#xa;',
0N/A ' }&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-zero-or-one">
2636N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
0N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public boolean has', $java-relation-name, '() throws ConcurrentModificationException,&#xa;',
2636N/A ' AuthorizationException, CommunicationException {&#xa;',
0N/A ' return impl.hasChild(INSTANCE.get', $java-relation-name,'RelationDefinition());&#xa;',
0N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ', $java-class-name, 'CfgClient get', $java-relation-name, '()&#xa;',
0N/A ' throws DefinitionDecodingException, ManagedObjectDecodingException,&#xa;',
0N/A ' ManagedObjectNotFoundException, ConcurrentModificationException,&#xa;',
2636N/A ' AuthorizationException, CommunicationException {&#xa;',
2636N/A ' return impl.getChild(INSTANCE.get', $java-relation-name,'RelationDefinition()).getConfiguration();&#xa;',
2636N/A ' }&#xa;')" />
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
0N/A ' * {@inheritDoc}&#xa;',
0N/A ' */&#xa;',
2636N/A ' public &lt;M extends ', $java-class-name, 'CfgClient&gt; M create', $java-relation-name, '(&#xa;',
2636N/A ' ManagedObjectDefinition&lt;M, ? extends ', $java-class-name,'Cfg&gt; d, Collection&lt;DefaultBehaviorException&gt; exceptions) {&#xa;',
0N/A ' return impl.createChild(INSTANCE.get', $java-relation-name,'RelationDefinition(), d, exceptions).getConfiguration();&#xa;',
0N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void remove', $java-relation-name, '()&#xa;',
0N/A ' throws ManagedObjectNotFoundException, ConcurrentModificationException,&#xa;',
0N/A ' OperationRejectedException, AuthorizationException, CommunicationException {&#xa;',
2636N/A ' impl.removeChild(INSTANCE.get', $java-relation-name,'RelationDefinition());&#xa;',
2636N/A ' }&#xa;')" />
0N/A </xsl:when>
0N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:variable name="plural-name"
2636N/A select="adm:one-to-many/@plural-name" />
0N/A <xsl:variable name="java-relation-plural-name">
0N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$plural-name" />
0N/A </xsl:call-template>
2636N/A </xsl:variable>
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public String[] list', $java-relation-plural-name, '() throws ConcurrentModificationException,&#xa;',
0N/A ' AuthorizationException, CommunicationException {&#xa;',
0N/A ' return impl.listChildren(INSTANCE.get', $java-relation-plural-name,'RelationDefinition());&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
0N/A ' public ', $java-class-name, 'CfgClient get', $java-relation-name, '(String name)&#xa;',
0N/A ' throws DefinitionDecodingException, ManagedObjectDecodingException,&#xa;',
2636N/A ' ManagedObjectNotFoundException, ConcurrentModificationException,&#xa;',
2636N/A ' AuthorizationException, CommunicationException {&#xa;',
0N/A ' return impl.getChild(INSTANCE.get', $java-relation-plural-name,'RelationDefinition(), name).getConfiguration();&#xa;',
0N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public &lt;M extends ', $java-class-name, 'CfgClient&gt; M create', $java-relation-name, '(&#xa;',
0N/A ' ManagedObjectDefinition&lt;M, ? extends ', $java-class-name,'Cfg&gt; d, String name, Collection&lt;DefaultBehaviorException&gt; exceptions) throws IllegalManagedObjectNameException {&#xa;',
0N/A ' return impl.createChild(INSTANCE.get', $java-relation-plural-name,'RelationDefinition(), d, name, exceptions).getConfiguration();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
0N/A ' */&#xa;',
0N/A ' public void remove', $java-relation-name, '(String name)&#xa;',
2636N/A ' throws ManagedObjectNotFoundException, ConcurrentModificationException,&#xa;',
2636N/A ' OperationRejectedException, AuthorizationException, CommunicationException {&#xa;',
2636N/A ' impl.removeChild(INSTANCE.get', $java-relation-plural-name,'RelationDefinition(), name);&#xa;',
0N/A ' }&#xa;')" />
0N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
0N/A select="concat('Unknown relation type &quot;', local-name(*), '&quot; in relation &quot;', $name, '&quot;.')" />
0N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:template>
0N/A <!--
0N/A Generate server relation methods.
2636N/A -->
2636N/A <xsl:template name="generate-server-relation-methods">
2636N/A <xsl:variable name="name" select="@name" />
0N/A <xsl:variable name="java-relation-name">
0N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$name" />
2636N/A </xsl:call-template>
0N/A </xsl:variable>
0N/A <xsl:variable name="java-class-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@managed-object-name" />
0N/A </xsl:call-template>
0N/A </xsl:variable>
2636N/A <xsl:choose>
2636N/A <xsl:when test="adm:one-to-one">
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ', $java-class-name, 'Cfg get',
0N/A $java-relation-name, '() throws ConfigException {&#xa;',
0N/A ' return impl.getChild(INSTANCE.get', $java-relation-name, 'RelationDefinition()).getConfiguration();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-zero-or-one">
0N/A <xsl:value-of
0N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public boolean has',
0N/A $java-relation-name, '() {&#xa;',
0N/A ' return impl.hasChild(INSTANCE.get', $java-relation-name, 'RelationDefinition());&#xa;',
2636N/A ' }&#xa;')" />
4317N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
0N/A ' public ', $java-class-name, 'Cfg get',
0N/A $java-relation-name, '() throws ConfigException {&#xa;',
2636N/A ' return impl.getChild(INSTANCE.get', $java-relation-name, 'RelationDefinition()).getConfiguration();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void add', $java-relation-name, 'AddListener(&#xa;',
2636N/A ' ConfigurationAddListener&lt;', $java-class-name,'Cfg&gt; listener) throws ConfigException {&#xa;',
2636N/A ' impl.registerAddListener(INSTANCE.get', $java-relation-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
0N/A <xsl:text>&#xa;</xsl:text>
0N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void remove', $java-relation-name, 'AddListener(&#xa;',
2636N/A ' ConfigurationAddListener&lt;', $java-class-name,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.deregisterAddListener(INSTANCE.get', $java-relation-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
41N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void add', $java-relation-name, 'DeleteListener(&#xa;',
2636N/A ' ConfigurationDeleteListener&lt;', $java-class-name,'Cfg&gt; listener) throws ConfigException {&#xa;',
2636N/A ' impl.registerDeleteListener(INSTANCE.get', $java-relation-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
65N/A ' */&#xa;',
2636N/A ' public void remove', $java-relation-name, 'DeleteListener(&#xa;',
2636N/A ' ConfigurationDeleteListener&lt;', $java-class-name,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.deregisterDeleteListener(INSTANCE.get', $java-relation-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
71N/A </xsl:when>
2636N/A <xsl:when test="adm:one-to-many">
2636N/A <xsl:variable name="plural-name"
2636N/A select="adm:one-to-many/@plural-name" />
71N/A <xsl:variable name="java-relation-plural-name">
96N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$plural-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public String[] list',
2636N/A $java-relation-plural-name, '() {&#xa;',
2636N/A ' return impl.listChildren(INSTANCE.get', $java-relation-plural-name,'RelationDefinition());&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public ', $java-class-name, 'Cfg get',
2636N/A $java-relation-name, '(String name) throws ConfigException {&#xa;',
2636N/A ' return impl.getChild(INSTANCE.get', $java-relation-plural-name, 'RelationDefinition(), name).getConfiguration();&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void add', $java-relation-name, 'AddListener(&#xa;',
2636N/A ' ConfigurationAddListener&lt;', $java-class-name,'Cfg&gt; listener) throws ConfigException {&#xa;',
2636N/A ' impl.registerAddListener(INSTANCE.get', $java-relation-plural-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void remove', $java-relation-name, 'AddListener(&#xa;',
2636N/A ' ConfigurationAddListener&lt;', $java-class-name,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.deregisterAddListener(INSTANCE.get', $java-relation-plural-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void add', $java-relation-name, 'DeleteListener(&#xa;',
2636N/A ' ConfigurationDeleteListener&lt;', $java-class-name,'Cfg&gt; listener) throws ConfigException {&#xa;',
2636N/A ' impl.registerDeleteListener(INSTANCE.get', $java-relation-plural-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public void remove', $java-relation-name, 'DeleteListener(&#xa;',
2636N/A ' ConfigurationDeleteListener&lt;', $java-class-name,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.deregisterDeleteListener(INSTANCE.get', $java-relation-plural-name, 'RelationDefinition(), listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
2636N/A select="concat('Unknown relation type &quot;', local-name(*), '&quot; in relation &quot;', $name, '&quot;.')" />
2636N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:template>
630N/A <!--
717N/A Generate change listener registration methods.
2636N/A -->
2636N/A <xsl:template name="generate-change-listener">
2636N/A <!--
2636N/A Process this managed object.
741N/A -->
2636N/A <xsl:variable name="top-name"
2636N/A select="$this/adm:profile[@name='preprocessor']/admpp:parent-managed-object[last()]/@name" />
2636N/A <xsl:call-template name="generate-change-listener-help">
2636N/A <xsl:with-param name="top-name" select="$top-name" />
2636N/A <xsl:with-param name="name" select="$this-name" />
2636N/A </xsl:call-template>
2636N/A <!--
2636N/A Process parent hierarchy.
2636N/A -->
2636N/A <xsl:for-each
2636N/A select="$this/adm:profile[@name='preprocessor']/admpp:parent-managed-object">
2636N/A <xsl:call-template name="generate-change-listener-help">
741N/A <xsl:with-param name="top-name" select="$top-name" />
759N/A <xsl:with-param name="name" select="@name" />
2636N/A </xsl:call-template>
2636N/A </xsl:for-each>
2636N/A </xsl:template>
759N/A <!--
1121N/A Generate a single set of change listener registration methods.
2636N/A -->
2636N/A <xsl:template name="generate-change-listener-help">
2636N/A <xsl:param name="top-name" select="/.." />
1121N/A <xsl:param name="name" select="/.." />
776N/A <xsl:variable name="short-name">
2636N/A <xsl:choose>
2636N/A <xsl:when test="not($top-name) or $top-name = $name">
2636N/A <xsl:value-of select="''" />
2636N/A </xsl:when>
776N/A <xsl:otherwise>
2636N/A <xsl:variable name="top-length"
2636N/A select="string-length($top-name)" />
2636N/A <xsl:variable name="length" select="string-length($name)" />
2636N/A <xsl:variable name="diff" select="$length - $top-length" />
2636N/A <xsl:value-of select="substring($name, 1, $diff - 1)" />
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:variable>
824N/A <xsl:variable name="java-class">
824N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:variable name="short-java-class">
824N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="$short-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:value-of
849N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;')" />
2636N/A <xsl:value-of
2636N/A select="concat(' public void add', $short-java-class, 'ChangeListener(&#xa;',
2636N/A ' ConfigurationChangeListener&lt;',$java-class,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.registerChangeListener(listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
849N/A <xsl:text>&#xa;</xsl:text>
849N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
849N/A ' */&#xa;')" />
849N/A <xsl:value-of
2636N/A select="concat(' public void remove', $short-java-class, 'ChangeListener(&#xa;',
2636N/A ' ConfigurationChangeListener&lt;',$java-class,'Cfg&gt; listener) {&#xa;',
2636N/A ' impl.deregisterChangeListener(listener);&#xa;',
2636N/A ' }&#xa;')" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Generate import statements for change-listener
2636N/A -->
2636N/A <xsl:template name="generate-change-listener-import-statements">
849N/A <!--
2636N/A Process this managed object.
2636N/A -->
2636N/A <xsl:element name="import">
849N/A <xsl:value-of
863N/A select="concat($this-package, '.server.', $this-java-class, 'Cfg')" />
2636N/A </xsl:element>
2636N/A <!--
2636N/A Process parent hierarchy.
2636N/A -->
2636N/A <xsl:for-each
2636N/A select="$this/adm:profile[@name='preprocessor']/admpp:parent-managed-object">
2636N/A <xsl:variable name="java-class">
2636N/A <xsl:call-template name="name-to-java">
983N/A <xsl:with-param name="value" select="@name" />
1017N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
1017N/A select="concat(@package, '.server.', $java-class, 'Cfg')" />
1026N/A </xsl:element>
2636N/A </xsl:for-each>
2636N/A </xsl:template>
2636N/A <!--
1026N/A Generate an enumeration for a locally defined enumerated property.
1026N/A -->
2636N/A <xsl:template name="generate-enumeration">
2636N/A <xsl:value-of
2636N/A select="concat(' /**&#xa;',
1026N/A ' * Defines the set of permissable values for the &quot;', @name, '&quot; property.&#xa;')" />
1026N/A <xsl:if test="adm:synopsis">
2636N/A <xsl:value-of select="' * &lt;p&gt;&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content" select="adm:synopsis" />
2636N/A </xsl:call-template>
2636N/A </xsl:if>
2636N/A <xsl:if test="adm:description">
2636N/A <xsl:value-of select="' * &lt;p&gt;&#xa;'" />
2636N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content" select="adm:description" />
2636N/A </xsl:call-template>
2636N/A </xsl:if>
1026N/A <xsl:value-of
1057N/A select="concat(' */&#xa;',
2636N/A ' public static enum ')" />
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
2636N/A <xsl:value-of select="' {&#xa;'" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:for-each select="adm:syntax/adm:enumeration/adm:value">
2636N/A <xsl:sort select="@name" />
1057N/A <xsl:value-of select="' /**&#xa;'" />
1057N/A <xsl:call-template name="add-java-comment">
2636N/A <xsl:with-param name="indent-text" select="' *'" />
2636N/A <xsl:with-param name="content" select="adm:synopsis" />
2636N/A </xsl:call-template>
1057N/A <xsl:value-of select="' */&#xa;'" />
1057N/A <xsl:value-of select="' '" />
2636N/A <xsl:call-template name="name-to-java-constant">
2636N/A <xsl:with-param name="value" select="@name" />
2636N/A </xsl:call-template>
1057N/A <xsl:value-of select="concat('(&quot;', @name, '&quot;)')" />
1057N/A <xsl:choose>
2636N/A <xsl:when test="position() != last()">
2636N/A <xsl:value-of select="',&#xa;'" />
2636N/A <xsl:text>&#xa;</xsl:text>
1057N/A <xsl:text>&#xa;</xsl:text>
1121N/A <xsl:text>&#xa;</xsl:text>
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <xsl:value-of select="';&#xa;'" />
1121N/A </xsl:otherwise>
1121N/A </xsl:choose>
2636N/A </xsl:for-each>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
1121N/A <xsl:text>&#xa;</xsl:text>
1121N/A <xsl:value-of
2636N/A select="' // String representation of the value.&#xa;'" />
2636N/A <xsl:value-of select="' private final String name;&#xa;'" />
2636N/A <xsl:text>&#xa;</xsl:text>
1121N/A <xsl:text>&#xa;</xsl:text>
1121N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' // Private constructor.&#xa;'" />
2636N/A <xsl:value-of select="' private '" />
2636N/A <xsl:call-template name="name-to-java">
1121N/A <xsl:with-param name="value" select="@name" />
1097N/A </xsl:call-template>
2636N/A <xsl:value-of
2636N/A select="concat('(String name) { this.name = name; }&#xa;',
2636N/A '&#xa;',
2636N/A '&#xa;',
1097N/A '&#xa;',
2636N/A ' /**&#xa;',
2636N/A ' * {@inheritDoc}&#xa;',
2636N/A ' */&#xa;',
2636N/A ' public String toString() { return name; }&#xa;')" />
1101N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:value-of select="' }&#xa;'" />
2636N/A </xsl:template>
2636N/A <!--
2636N/A Main document parsing template.
1101N/A -->
2636N/A <xsl:template match="/">
2636N/A <!-- Perform some initial validation.
2636N/A -->
1101N/A <xsl:for-each select="$this-all-properties">
1096N/A <!--
2636N/A Check that all non-mandatory properties have a default behavior.
2636N/A -->
2636N/A <xsl:if
1094N/A test="not(@mandatory='true') and not(adm:default-behavior)">
1096N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
1094N/A select="concat('No default behavior defined for non-mandatory property &quot;', @name,
2636N/A '&quot;.')" />
1094N/A </xsl:message>
1096N/A </xsl:if>
2636N/A <!--
2636N/A Check that all advanced properties conform to one of
2636N/A the following rules:
2636N/A
2636N/A * is mandatory and has a defined default value(s)
2636N/A * is mandatory and is part of an advanced managed object
2636N/A * is mandatory and is part of an abstract managed object
2636N/A * is not mandatory
1102N/A -->
1110N/A <xsl:choose>
2636N/A <xsl:when test="$this-is-advanced">
2636N/A <!-- OK -->
2636N/A </xsl:when>
1110N/A <xsl:when test="$this-is-abstract">
1112N/A <!-- OK -->
2636N/A </xsl:when>
2636N/A <xsl:when test="@advanced='true' and @mandatory='true'">
2636N/A <xsl:choose>
1280N/A <xsl:when test="adm:default-behavior/adm:defined">
1280N/A <!-- OK -->
2636N/A </xsl:when>
1280N/A <xsl:when test="adm:default-behavior/adm:inherited">
2636N/A <!-- OK -->
1280N/A </xsl:when>
1280N/A <xsl:otherwise>
2636N/A <xsl:message terminate="yes">
2636N/A <xsl:value-of
2636N/A select="concat('Advanced property &quot;', @name,
1280N/A '&quot; must have defined or inherited default values.')" />
1280N/A </xsl:message>
2636N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A </xsl:when>
1280N/A </xsl:choose>
1280N/A </xsl:for-each>
2636N/A <!--
2636N/A Now generate the definition.
2636N/A -->
1280N/A <xsl:call-template name="copyright-notice" />
1280N/A <xsl:value-of
2636N/A select="concat('package ', $this-package, '.meta;&#xa;')" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
1280N/A <xsl:text>&#xa;</xsl:text>
1280N/A <xsl:call-template name="generate-import-statements">
2636N/A <xsl:with-param name="imports">
2636N/A <xsl:if test="not(boolean($this/@extends))">
2636N/A <import>org.opends.server.admin.TopCfgDefn</import>
1280N/A </xsl:if>
1280N/A <xsl:if test="$this/adm:constraint">
2636N/A <import>org.opends.server.admin.GenericConstraint</import>
2636N/A <import>org.opends.server.admin.condition.Conditions</import>
2636N/A </xsl:if>
1280N/A <xsl:if
1280N/A test="$this-local-properties[@multi-valued='true' or
2636N/A @read-only='true' or
1280N/A @monitoring='true' or
2636N/A @hidden='true' or
1280N/A @advanced='true' or
1280N/A @mandatory='true']">
2636N/A <import>org.opends.server.admin.PropertyOption</import>
2636N/A </xsl:if>
2636N/A <xsl:if test="$this-local-properties">
1280N/A <import>org.opends.server.admin.AdministratorAction</import>
1280N/A </xsl:if>
2636N/A <xsl:if test="$this/adm:tag-definition or $this/adm:tag">
2636N/A <import>org.opends.server.admin.Tag</import>
2636N/A </xsl:if>
1280N/A <xsl:if
1280N/A test="$this-local-properties[adm:default-behavior/adm:undefined or not(adm:default-behavior)]">
2636N/A <import>
2636N/A org.opends.server.admin.UndefinedDefaultBehaviorProvider
2636N/A </import>
1280N/A </xsl:if>
1280N/A <xsl:if
2636N/A test="$this-local-properties/adm:default-behavior/adm:alias">
2636N/A <import>
2636N/A org.opends.server.admin.AliasDefaultBehaviorProvider
1280N/A </import>
1280N/A </xsl:if>
2636N/A <xsl:if
2636N/A test="$this-local-properties/adm:default-behavior/adm:inherited/adm:absolute">
2636N/A <import>
1280N/A org.opends.server.admin.AbsoluteInheritedDefaultBehaviorProvider
1280N/A </import>
2636N/A </xsl:if>
2636N/A <xsl:if
2636N/A test="$this-local-properties/adm:default-behavior/adm:inherited/adm:relative">
1280N/A <import>
1280N/A org.opends.server.admin.RelativeInheritedDefaultBehaviorProvider
2636N/A </import>
2636N/A <xsl:for-each
2636N/A select="$this-local-properties/adm:default-behavior/adm:inherited/adm:relative">
1280N/A <xsl:if test="@managed-object-package != $this-package">
1280N/A <xsl:variable name="java-class-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value"
2636N/A select="@managed-object-name" />
1280N/A </xsl:call-template>
1482N/A </xsl:variable>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.meta.', $java-class-name, 'CfgDefn')" />
2636N/A </xsl:element>
1482N/A </xsl:if>
2636N/A </xsl:for-each>
2636N/A </xsl:if>
2636N/A <xsl:if
2636N/A test="$this-local-properties/adm:default-behavior/adm:defined">
1482N/A <import>
2636N/A org.opends.server.admin.DefinedDefaultBehaviorProvider
2636N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.DefaultBehaviorProvider
1482N/A </import>
2636N/A </xsl:if>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat($this-package, '.client.', $this-java-class, 'CfgClient')" />
2636N/A </xsl:element>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat($this-package, '.server.', $this-java-class, 'Cfg')" />
2636N/A </xsl:element>
2636N/A <xsl:for-each select="$this-inherited-properties">
2636N/A <xsl:call-template name="get-property-java-imports">
2636N/A <xsl:with-param name="interface" select="'server'" />
2636N/A </xsl:call-template>
2636N/A </xsl:for-each>
2636N/A <xsl:for-each select="$this-all-properties">
2636N/A <xsl:call-template
2636N/A name="get-property-definition-java-imports" />
2636N/A </xsl:for-each>
2636N/A <xsl:for-each select="$this-all-relations">
2636N/A <xsl:variable name="java-class-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value"
2636N/A select="@managed-object-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.client.', $java-class-name, 'CfgClient')" />
2636N/A </xsl:element>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.server.', $java-class-name, 'Cfg')" />
2636N/A </xsl:element>
2636N/A </xsl:for-each>
2636N/A <xsl:if
2636N/A test="$this-local-relations/*/adm:default-managed-object">
2636N/A <import>org.opends.server.admin.DefaultManagedObject</import>
2636N/A </xsl:if>
2636N/A <xsl:for-each
2636N/A select="$this-local-relations/*/adm:default-managed-object">
2636N/A <xsl:variable name="java-class-name">
2636N/A <xsl:call-template name="name-to-java">
2636N/A <xsl:with-param name="value"
1280N/A select="@managed-object-name" />
2636N/A </xsl:call-template>
2636N/A </xsl:variable>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.client.', $java-class-name, 'CfgClient')" />
2636N/A </xsl:element>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.server.', $java-class-name, 'Cfg')" />
2636N/A </xsl:element>
2636N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat(@managed-object-package, '.meta.', $java-class-name, 'CfgDefn')" />
2636N/A </xsl:element>
2636N/A </xsl:for-each>
2636N/A <xsl:if
2636N/A test="$this-local-relations[@advanced='true' or @hidden='true']">
1280N/A <import>org.opends.server.admin.RelationOption</import>
2636N/A </xsl:if>
2636N/A <xsl:if test="$this-is-hidden or $this-is-advanced">
2636N/A <import>org.opends.server.admin.ManagedObjectOption</import>
2636N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-many">
1523N/A <import>
2636N/A org.opends.server.admin.InstantiableRelationDefinition
2636N/A </import>
1790N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-zero-or-one">
2636N/A <import>
2636N/A org.opends.server.admin.OptionalRelationDefinition
1790N/A </import>
1590N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-one">
2636N/A <import>
2636N/A org.opends.server.admin.SingletonRelationDefinition
2636N/A </import>
2636N/A </xsl:if>
2636N/A <xsl:choose>
2636N/A <xsl:when test="$this-is-abstract">
2636N/A <import>
2636N/A org.opends.server.admin.AbstractManagedObjectDefinition
2636N/A </import>
2636N/A </xsl:when>
2636N/A <xsl:otherwise>
2636N/A <import>
2636N/A org.opends.server.admin.ManagedObjectDefinition
2636N/A </import>
2636N/A <import>org.opends.server.admin.PropertyProvider</import>
2636N/A <import>
1611N/A org.opends.server.admin.client.MissingMandatoryPropertiesException
1611N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.ManagedObjectAlreadyExistsException
2636N/A </import>
1611N/A <import>
2636N/A org.opends.server.admin.client.AuthorizationException
2636N/A </import>
1611N/A <import>
1611N/A org.opends.server.admin.client.CommunicationException
2636N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.client.ConcurrentModificationException
2636N/A </import>
1611N/A <import>
2636N/A org.opends.server.admin.client.OperationRejectedException
2636N/A </import>
2636N/A <import>
1611N/A org.opends.server.admin.client.ManagedObject
2636N/A </import>
2636N/A <import>
1611N/A org.opends.server.admin.server.ServerManagedObject
1611N/A </import>
2636N/A <xsl:if test="not($this-is-root)">
2636N/A <import>
2636N/A org.opends.server.admin.server.ConfigurationChangeListener
1611N/A </import>
2636N/A <xsl:call-template
2636N/A name="generate-change-listener-import-statements" />
1611N/A </xsl:if>
1611N/A <import>org.opends.server.types.DN</import>
2636N/A <xsl:if test="$this-all-relations">
2636N/A <import>
2636N/A org.opends.server.admin.DefinitionDecodingException
1611N/A </import>
1611N/A <import>
2636N/A org.opends.server.admin.ManagedObjectNotFoundException
2636N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.client.ManagedObjectDecodingException
1611N/A </import>
1611N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-many">
2636N/A <import>java.util.Collection</import>
2636N/A <import>
1611N/A org.opends.server.admin.client.IllegalManagedObjectNameException
1611N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.DefaultBehaviorException
2636N/A </import>
1611N/A <import>
1611N/A org.opends.server.admin.server.ConfigurationAddListener
2636N/A </import>
2636N/A <import>
1611N/A org.opends.server.admin.server.ConfigurationDeleteListener
1611N/A </import>
2636N/A <import>org.opends.server.config.ConfigException</import>
2636N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-zero-or-one">
1611N/A <import>java.util.Collection</import>
1611N/A <import>
2636N/A org.opends.server.admin.DefaultBehaviorException
2636N/A </import>
2636N/A <import>
1611N/A org.opends.server.admin.server.ConfigurationAddListener
1611N/A </import>
2636N/A <import>
2636N/A org.opends.server.admin.server.ConfigurationDeleteListener
2636N/A </import>
1611N/A <import>org.opends.server.config.ConfigException</import>
1611N/A </xsl:if>
2636N/A <xsl:if test="$this-all-relations/adm:one-to-one">
2636N/A <import>org.opends.server.config.ConfigException</import>
1611N/A </xsl:if>
1611N/A <xsl:if test="$this-all-properties[@multi-valued='true']">
2636N/A <import>java.util.SortedSet</import>
2636N/A <import>java.util.Collection</import>
1611N/A </xsl:if>
1611N/A <xsl:if test="$this-all-properties[@read-only='true']">
2636N/A <import>
2636N/A org.opends.server.admin.PropertyIsReadOnlyException
2636N/A </import>
1611N/A </xsl:if>
1611N/A </xsl:otherwise>
2636N/A </xsl:choose>
2636N/A <xsl:if test="$this/@extends">
1611N/A <xsl:if test="$parent-package != $this-package">
1611N/A <xsl:element name="import">
2636N/A <xsl:value-of
2636N/A select="concat($parent-package, '.meta.', $parent-java-class, 'CfgDefn')" />
2636N/A </xsl:element>
2636N/A </xsl:if>
1611N/A </xsl:if>
1611N/A </xsl:with-param>
2636N/A </xsl:call-template>
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:text>&#xa;</xsl:text>
1611N/A <xsl:text>&#xa;</xsl:text>
1611N/A <xsl:call-template name="generate-meta-class-declaration" />
2636N/A <xsl:text>&#xa;</xsl:text>
2636N/A <xsl:call-template name="generate-meta-class-body" />
2636N/A <xsl:text>}&#xa;</xsl:text>
1611N/A </xsl:template>
1611N/A</xsl:stylesheet>
2270N/A