mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
09.08.2007 e4ac643dbdd7742cf17d0d55f624b1e45cea87d3
Update the admin framework to complete the partial support for the
case-insensitive property of the string syntax.
2 files modified
16 ■■■■■ changed files
opends/resource/admin/admin.xsd 9 ●●●●● patch | view | raw | blame | history
opends/resource/admin/property-types/string.xsl 7 ●●●●● patch | view | raw | blame | history
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>
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, ');&#xa;')" />
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>