Partial fix for issue 2296: fix minor bugs in XSL scripts.
| | |
| | | <xsl:value-of select="' static {
'" /> |
| | | <xsl:if test="$this-is-advanced"> |
| | | <xsl:value-of |
| | | select="concat(' INSTANCE.registerOption(ManagedObjectOption.ADVANCED);
')" /> |
| | | select="' INSTANCE.registerOption(ManagedObjectOption.ADVANCED);
'" /> |
| | | </xsl:if> |
| | | <xsl:if test="$this-is-hidden"> |
| | | <xsl:value-of |
| | | select="concat(' INSTANCE.registerOption(ManagedObjectOption.HIDDEN);
')" /> |
| | | select="' INSTANCE.registerOption(ManagedObjectOption.HIDDEN);
'" /> |
| | | </xsl:if> |
| | | <xsl:value-of select="' }
'" /> |
| | | </xsl:if> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin" |
| | | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| | | <xsl:import href="java-utilities.xsl" /> |
| | | <!-- |
| | | |
| | | |
| | |
| | | <xsl:otherwise> |
| | | <xsl:value-of select="'Collection<'" /> |
| | | <xsl:call-template name="get-property-java-type" /> |
| | | <xsl:value-of select="'> values)'" /> |
| | | <xsl:if test="@read-only='true'"> |
| | | <xsl:value-of |
| | | select="' throws PropertyIsReadOnlyException'" /> |
| | | </xsl:if> |
| | | <xsl:value-of |
| | | select="concat('> values) {
' , |
| | | select="concat(' {
' , |
| | | ' impl.setPropertyValues(INSTANCE.get', |
| | | $java-prop-name , |
| | | 'PropertyDefinition(), values);
', |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin" |
| | | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| | | <xsl:import href="../java-utilities.xsl" /> |
| | | <xsl:include href="../conditions.xsl" /> |
| | | <!-- |
| | | Templates for processing aggregation properties. |
| | |
| | | <xsl:value-of |
| | | select="concat(' String value = get', $java-property-name, '();
')" /> |
| | | <xsl:value-of |
| | | select="concat(' if (value == null) return null;
')" /> |
| | | select="' if (value == null) return null;
'" /> |
| | | <xsl:value-of |
| | | select="concat(' return INSTANCE.get', $java-property-name, 'PropertyDefinition().getChildDN(value);
')" /> |
| | | <xsl:value-of select="' }
'" /> |