From a0005e703a1c267b53f089c0709e32c8a898c646 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 11 Jun 2007 14:49:23 +0000
Subject: [PATCH] Add support for specifying a "usage" string for string based property definitions which define a pattern constraint. The usage string is used when the syntax of a property needs to be displayed, for example in a CLI help screen or in server-side log messages when a bad property value is encountered. For example, a property whose values must be a valid UNIX mode could have the following string syntax definition:
---
opends/resource/admin/admin.xsd | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opends/resource/admin/admin.xsd b/opends/resource/admin/admin.xsd
index c011f3b..81124e7 100644
--- a/opends/resource/admin/admin.xsd
+++ b/opends/resource/admin/admin.xsd
@@ -1275,6 +1275,16 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element name="usage" type="xsd:string">
+ <xsd:annotation>
+ <xsd:documentation>
+ The usage string which should be displayed in
+ help relating to this string based property. For
+ example, a pattern which is used to match a
+ host/port string could have the usage HOST:PORT.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
<xsd:element name="synopsis"
type="tns:rich-description-type">
<xsd:annotation>
--
Gitblit v1.10.0