| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin" |
| | | xmlns:admpp="http://www.opends.org/admin-preprocessor" |
| | |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:call-template name="add-java-comment2"> |
| | | <xsl:with-param name="indent" select="2" /> |
| | | <xsl:with-param name="content" |
| | | select="concat( |
| | | 'Creates a new ', $ufn,'. The new ', $ufn,' will initially ', |
| | | 'not contain any property values (including mandatory ', |
| | | 'properties). Once the ', $ufn,' has been configured it ', |
| | | 'can be added to the server using the {@link #commit()} ', |
| | | 'method.
', |
| | | '
', |
| | | '@param <C>
', |
| | | ' The type of the ', $ufn,' being created.
', |
| | | '@param d
', |
| | | ' The definition of the ', $ufn,' to be created.
', |
| | | '@param name
', |
| | | ' The name of the new ', $ufn,'.
', |
| | | '@param exceptions
', |
| | | ' An optional collection in which to place any ', |
| | | '{@link DefaultBehaviorException}s that occurred whilst ', |
| | | 'attempting to determine the default values of the ', $ufn, |
| | | '. This argument can be <code>null<code>.
', |
| | | '@return Returns a new ', $ufn,' configuration instance.
', |
| | | '@throws IllegalManagedObjectNameException
', |
| | | ' If the name of the new ', $ufn,' is invalid.
')" /> |
| | | </xsl:call-template> |
| | | <xsl:value-of |
| | | select="concat(' <C extends ', $java-class-name,'CfgClient> C create', $java-relation-name, '(
', |
| | | ' ManagedObjectDefinition<C, ? extends ', $java-class-name,'Cfg> d, String name, Collection<DefaultBehaviorException> exceptions) throws IllegalManagedObjectNameException;
')" /> |
| | | <xsl:choose> |
| | | <xsl:when test="string(adm:one-to-many/@unique) != 'true'"> |
| | | <xsl:call-template name="add-java-comment2"> |
| | | <xsl:with-param name="indent" select="2" /> |
| | | <xsl:with-param name="content" |
| | | select="concat( |
| | | 'Creates a new ', $ufn,'. The new ', $ufn,' will initially ', |
| | | 'not contain any property values (including mandatory ', |
| | | 'properties). Once the ', $ufn,' has been configured it ', |
| | | 'can be added to the server using the {@link #commit()} ', |
| | | 'method.
', |
| | | '
', |
| | | '@param <C>
', |
| | | ' The type of the ', $ufn,' being created.
', |
| | | '@param d
', |
| | | ' The definition of the ', $ufn,' to be created.
', |
| | | '@param name
', |
| | | ' The name of the new ', $ufn,'.
', |
| | | '@param exceptions
', |
| | | ' An optional collection in which to place any ', |
| | | '{@link DefaultBehaviorException}s that occurred whilst ', |
| | | 'attempting to determine the default values of the ', $ufn, |
| | | '. This argument can be <code>null<code>.
', |
| | | '@return Returns a new ', $ufn,' configuration instance.
', |
| | | '@throws IllegalManagedObjectNameException
', |
| | | ' If the name of the new ', $ufn,' is invalid.
')" /> |
| | | </xsl:call-template> |
| | | <xsl:value-of |
| | | select="concat(' <C extends ', $java-class-name,'CfgClient> C create', $java-relation-name, '(
', |
| | | ' ManagedObjectDefinition<C, ? extends ', $java-class-name,'Cfg> d, String name, Collection<DefaultBehaviorException> exceptions) throws IllegalManagedObjectNameException;
')" /> |
| | | </xsl:when> |
| | | <xsl:when test="string(adm:one-to-many/@unique) = 'true'"> |
| | | <xsl:call-template name="add-java-comment2"> |
| | | <xsl:with-param name="indent" select="2" /> |
| | | <xsl:with-param name="content" |
| | | select="concat( |
| | | 'Creates a new ', $ufn,'. The new ', $ufn,' will initially ', |
| | | 'not contain any property values (including mandatory ', |
| | | 'properties). Once the ', $ufn,' has been configured it ', |
| | | 'can be added to the server using the {@link #commit()} ', |
| | | 'method.
', |
| | | '
', |
| | | '@param <C>
', |
| | | ' The type of the ', $ufn,' being created.
', |
| | | '@param d
', |
| | | ' The definition of the ', $ufn,' to be created.
', |
| | | '@param exceptions
', |
| | | ' An optional collection in which to place any ', |
| | | '{@link DefaultBehaviorException}s that occurred whilst ', |
| | | 'attempting to determine the default values of the ', $ufn, |
| | | '. This argument can be <code>null<code>.
', |
| | | '@return Returns a new ', $ufn,' configuration instance.
')" /> |
| | | </xsl:call-template> |
| | | <xsl:value-of |
| | | select="concat(' <C extends ', $java-class-name,'CfgClient> C create', $java-relation-name, '(
', |
| | | ' ManagedObjectDefinition<C, ? extends ', $java-class-name,'Cfg> d, Collection<DefaultBehaviorException> exceptions);
')" /> |
| | | </xsl:when> |
| | | </xsl:choose> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | | <xsl:text>
</xsl:text> |
| | |
| | | org.opends.server.admin.client.OperationRejectedException |
| | | </import> |
| | | </xsl:if> |
| | | <xsl:if test="$this-local-relations/adm:one-to-many"> |
| | | <xsl:if test="$this-local-relations/adm:one-to-many[not(@unique = 'true')]"> |
| | | <import> |
| | | org.opends.server.admin.client.IllegalManagedObjectNameException |
| | | </import> |