From 8a7ff716fed166cd42ec42faaabb7d70e317f884 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 16 Nov 2016 14:40:03 +0000
Subject: [PATCH] OPENDJ-3505 Provide method for obtaining the user provided name of a component

---
 opendj-maven-plugin/src/main/resources/config/stylesheets/metaMO.xsl |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/opendj-maven-plugin/src/main/resources/config/stylesheets/metaMO.xsl b/opendj-maven-plugin/src/main/resources/config/stylesheets/metaMO.xsl
index d1b46734..5884ced 100644
--- a/opendj-maven-plugin/src/main/resources/config/stylesheets/metaMO.xsl
+++ b/opendj-maven-plugin/src/main/resources/config/stylesheets/metaMO.xsl
@@ -12,7 +12,7 @@
   information: "Portions Copyright [year] [name of copyright owner]".
 
   Copyright 2007-2010 Sun Microsystems, Inc.
-  Portions copyright 2011-2014 ForgeRock AS.
+  Portions copyright 2011-2016 ForgeRock AS.
   ! -->
 <xsl:stylesheet version="1.0" xmlns:adm="http://opendj.forgerock.org/admin"
   xmlns:admpp="http://opendj.forgerock.org/admin-preprocessor"
@@ -610,6 +610,17 @@
                      '    public DN dn() {&#xa;',
                      '      return impl.getDN();&#xa;',
                      '    }&#xa;')" />
+    <!--
+      Configuration name getter.
+    -->
+    <xsl:text>&#xa;</xsl:text>
+    <xsl:text>&#xa;</xsl:text>
+    <xsl:text>&#xa;</xsl:text>
+    <xsl:value-of
+        select="concat('    /** {@inheritDoc} */&#xa;',
+                     '    public String name() {&#xa;',
+                     '      return impl.getName();&#xa;',
+                     '    }&#xa;')" />
     <xsl:text>&#xa;</xsl:text>
     <xsl:text>&#xa;</xsl:text>
     <xsl:text>&#xa;</xsl:text>
@@ -1635,7 +1646,7 @@
       <!--
         Check that all advanced properties conform to one of
         the following rules:
-        
+
         * is mandatory and has a defined default value(s)
         * is mandatory and is part of an advanced managed object
         * is mandatory and is part of an abstract managed object

--
Gitblit v1.10.0