From b1225d4ea6bf876a5f2a1c097b2c908af49354b9 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 25 Apr 2007 16:53:39 +0000
Subject: [PATCH] Update the MakeLDIF tool to implement support for the "extends" keyword, allowing one template to extend another and inherit all of the definitions from the parent template.

---
 opends/src/server/org/opends/server/messages/ToolMessages.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index 5ca8968..49dd141 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -6935,6 +6935,19 @@
   public static final int MSGID_LDAPMODIFY_DESCRIPTION_FILENAME =
        CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 874;
 
+
+
+  /**
+   * The message ID for the message that will be used if a template references
+   * a parent template that is not yet defined.  This takes three arguments,
+   * which are the parent template name, the line number on which it is
+   * referenced, and the child template name.
+   */
+  public static final int MSGID_MAKELDIF_TEMPLATE_INVALID_PARENT_TEMPLATE =
+       CATEGORY_MASK_TOOLS | SEVERITY_MASK_MILD_ERROR | 875;
+
+
+
   /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
@@ -8497,6 +8510,11 @@
                     "Unable to parse the number of entries for template %s " +
                     "as an integer for the subordinate template definition " +
                     "on line %d for branch %s");
+    registerMessage(MSGID_MAKELDIF_TEMPLATE_INVALID_PARENT_TEMPLATE,
+                    "The parent template %s referenced on line %d for " +
+                    "template %s is invalid because the referenced parent " +
+                    "template is not defined before the template that " +
+                    "extends it");
     registerMessage(MSGID_MAKELDIF_TEMPLATE_SUBORDINATE_TEMPLATE_NO_COLON,
                     "Subordinate template definition on line %d for template " +
                     "%s is missing a colon to separate the template name " +

--
Gitblit v1.10.0