From e4ac643dbdd7742cf17d0d55f624b1e45cea87d3 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 09 Apr 2007 16:08:56 +0000
Subject: [PATCH] Update the admin framework to complete the partial support for the case-insensitive property of the string syntax.
---
opends/resource/admin/admin.xsd | 11 ++++++++++-
opends/resource/admin/property-types/string.xsl | 7 +++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/opends/resource/admin/admin.xsd b/opends/resource/admin/admin.xsd
index aa2bed0..f9cef3d 100644
--- a/opends/resource/admin/admin.xsd
+++ b/opends/resource/admin/admin.xsd
@@ -1196,6 +1196,15 @@
</xsd:complexType>
</xsd:element>
</xsd:sequence>
+ <xsd:attribute name="case-insensitive" type="xsd:boolean"
+ use="optional" default="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ Indicates whether or not values of this property should
+ be treated in a case-insensitive manner.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -1487,4 +1496,4 @@
</xsd:attribute>
</xsd:complexType>
</xsd:element>
-</xsd:schema>
\ No newline at end of file
+</xsd:schema>
diff --git a/opends/resource/admin/property-types/string.xsl b/opends/resource/admin/property-types/string.xsl
index c9ad8c9..ebcd145 100644
--- a/opends/resource/admin/property-types/string.xsl
+++ b/opends/resource/admin/property-types/string.xsl
@@ -35,4 +35,11 @@
<xsl:template match="adm:string" mode="java-definition-type">
<xsl:value-of select="'StringPropertyDefinition'" />
</xsl:template>
+ <xsl:template match="adm:string" mode="java-definition-ctor">
+ <xsl:if test="boolean(@case-insensitive)">
+ <xsl:value-of
+ select="concat(' builder.setCaseInsensitive(',
+ @case-insensitive, ');
')" />
+ </xsl:if>
+ </xsl:template>
</xsl:stylesheet>
--
Gitblit v1.10.0