From e9d59ae1b6f7da18a4de6ae58cb5ba275cc0bbfc Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 14 Sep 2007 09:28:12 +0000
Subject: [PATCH] Add support to the admin framework code generation scripts so that properties can define their own syntax specific getters and setters.

---
 opends/resource/admin/clientMO.xsl |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/opends/resource/admin/clientMO.xsl b/opends/resource/admin/clientMO.xsl
index 674072c..f04bd52 100644
--- a/opends/resource/admin/clientMO.xsl
+++ b/opends/resource/admin/clientMO.xsl
@@ -362,19 +362,24 @@
     <xsl:call-template name="generate-import-statements">
       <xsl:with-param name="imports">
         <xsl:for-each select="$this-local-properties">
-          <xsl:call-template name="get-property-java-imports" />
+          <xsl:call-template name="get-property-java-imports">
+            <xsl:with-param name="interface" select="'client'" />
+          </xsl:call-template>
         </xsl:for-each>
         <xsl:if test="$this-local-properties[@multi-valued='true']">
           <import>java.util.Collection</import>
           <import>java.util.SortedSet</import>
         </xsl:if>
-        <xsl:if test="$this-local-properties[not(@monitoring='true')]">
+        <xsl:if
+          test="$this-local-properties[not(@monitoring='true')]">
           <import>
             org.opends.server.admin.IllegalPropertyValueException
           </import>
         </xsl:if>
         <xsl:if test="$this-local-properties[@read-only='true']">
-          <import>org.opends.server.admin.PropertyIsReadOnlyException</import>
+          <import>
+            org.opends.server.admin.PropertyIsReadOnlyException
+          </import>
         </xsl:if>
         <xsl:if test="$this-local-relations">
           <import>
@@ -396,7 +401,8 @@
             org.opends.server.admin.client.CommunicationException
           </import>
         </xsl:if>
-        <xsl:for-each select="$this-local-relations[adm:one-to-zero-or-one]|$this-local-relations[adm:one-to-many]">
+        <xsl:for-each
+          select="$this-local-relations[adm:one-to-zero-or-one]|$this-local-relations[adm:one-to-many]">
           <xsl:variable name="java-class-name">
             <xsl:call-template name="name-to-java">
               <xsl:with-param name="value"

--
Gitblit v1.10.0