From 86c2b0da0799e95892531bd260d815a411eb4f2c Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 14 Jan 2010 10:25:01 +0000
Subject: [PATCH] Partial fix for issue 2296: fix minor bugs in XSL scripts.
---
opendj-sdk/opends/resource/admin/metaMO.xsl | 4 ++--
opendj-sdk/opends/resource/admin/property-types.xsl | 10 ++++++++--
opendj-sdk/opends/resource/admin/property-types/aggregation.xsl | 5 +++--
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opends/resource/admin/metaMO.xsl b/opendj-sdk/opends/resource/admin/metaMO.xsl
index 490aa98..6b7a6f2 100644
--- a/opendj-sdk/opends/resource/admin/metaMO.xsl
+++ b/opendj-sdk/opends/resource/admin/metaMO.xsl
@@ -164,11 +164,11 @@
<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>
diff --git a/opendj-sdk/opends/resource/admin/property-types.xsl b/opendj-sdk/opends/resource/admin/property-types.xsl
index b32a657..c0f4d8d 100644
--- a/opendj-sdk/opends/resource/admin/property-types.xsl
+++ b/opendj-sdk/opends/resource/admin/property-types.xsl
@@ -22,10 +22,11 @@
! 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" />
<!--
@@ -618,8 +619,13 @@
<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);
',
diff --git a/opendj-sdk/opends/resource/admin/property-types/aggregation.xsl b/opendj-sdk/opends/resource/admin/property-types/aggregation.xsl
index ff399ab..cf26e46 100644
--- a/opendj-sdk/opends/resource/admin/property-types/aggregation.xsl
+++ b/opendj-sdk/opends/resource/admin/property-types/aggregation.xsl
@@ -22,10 +22,11 @@
! 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.
@@ -209,7 +210,7 @@
<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="' }
'" />
--
Gitblit v1.10.0