directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721406 - in /directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152: Messages.java SaslQualityOfProtectionEnum.java ServerXmlIOV152.java messages.properties
Date Fri, 28 Nov 2008 09:51:41 GMT
Author: felixk
Date: Fri Nov 28 01:51:40 2008
New Revision: 721406

URL: http://svn.apache.org/viewvc?rev=721406&view=rev
Log:
Externalize Strings

Added:
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java   (with props)
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties   (with props)
Modified:
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/SaslQualityOfProtectionEnum.java
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ServerXmlIOV152.java

Added: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java?rev=721406&view=auto
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java (added)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java Fri Nov 28 01:51:40 2008
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.apacheds.configuration.model.v152;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.apacheds.configuration.model.v152.messages"; //$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+    private Messages()
+    {
+    }
+
+
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            return '!' + key + '!';
+        }
+    }
+}

Propchange: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/Messages.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/SaslQualityOfProtectionEnum.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/SaslQualityOfProtectionEnum.java?rev=721406&r1=721405&r2=721406&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/SaslQualityOfProtectionEnum.java (original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/SaslQualityOfProtectionEnum.java Fri Nov 28 01:51:40 2008
@@ -29,13 +29,13 @@
 public enum SaslQualityOfProtectionEnum
 {
     /** The auth QoP */
-    AUTH("auth (Authentication only)"),
+    AUTH(Messages.getString( "SaslQualityOfProtectionEnum.AuthenticationOnly" )), //$NON-NLS-1$
 
     /** The auth-int QoP */
-    AUTH_INT("auth-int (Authentication with integrity protection)"),
+    AUTH_INT(Messages.getString( "SaslQualityOfProtectionEnum.AuthenticationWithIntegrityProtection" )), //$NON-NLS-1$
 
     /** The auth-conf QoP */
-    AUTH_CONF("auth-conf (Authentication with integrity and privacy protection)");
+    AUTH_CONF(Messages.getString( "SaslQualityOfProtectionEnum.AuthenticationWithIntegrityAndPrivacyProtection" )); //$NON-NLS-1$
 
     /** The name */
     private String name;

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ServerXmlIOV152.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ServerXmlIOV152.java?rev=721406&r1=721405&r2=721406&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ServerXmlIOV152.java (original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ServerXmlIOV152.java Fri Nov 28 01:51:40 2008
@@ -42,6 +42,7 @@
 import org.dom4j.Namespace;
 import org.dom4j.QName;
 import org.dom4j.io.SAXReader;
+import org.eclipse.osgi.util.NLS;
 
 
 /**
@@ -53,95 +54,95 @@
  */
 public class ServerXmlIOV152 extends AbstractServerXmlIO implements ServerXmlIO
 {
-    private static final String ATTRIBUTE_ACCESS_CONTROL_ENABLED = "accessControlEnabled";
-    private static final String ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS = "allowAnonymousAccess";
-    private static final String ATTRIBUTE_ATTRIBUTE_ID = "attributeId";
-    private static final String ATTRIBUTE_CACHE_SIZE = "cacheSize";
-    private static final String ATTRIBUTE_CLASS = "class";
-    private static final String ATTRIBUTE_DENORMALIZE_OP_ATTRS_ENABLED = "denormalizeOpAttrsEnabled";
-    private static final String ATTRIBUTE_ENABLE_LDAPS = "enableLdaps";
-    private static final String ATTRIBUTE_ENABLED = "enabled";
-    private static final String ATTRIBUTE_ID = "id";
-    private static final String ATTRIBUTE_INSTANCE_ID = "instanceId";
-    private static final String ATTRIBUTE_IP_PORT = "ipPort";
-    private static final String ATTRIBUTE_KEY = "key";
-    private static final String ATTRIBUTE_LOCAL = "local";
-    private static final String ATTRIBUTE_MAX_SIZE_LIMIT = "maxSizeLimit";
-    private static final String ATTRIBUTE_MAX_THREADS = "maxThreads";
-    private static final String ATTRIBUTE_MAX_TIME_LIMIT = "maxTimeLimit";
-    private static final String ATTRIBUTE_NAME = "name";
-    private static final String ATTRIBUTE_OPTIMIZER_ENABLED = "optimizerEnabled";
-    private static final String ATTRIBUTE_SASL_HOST = "saslHost";
-    private static final String ATTRIBUTE_SASL_PRINCIPAL = "saslPrincipal";
-    private static final String ATTRIBUTE_SEARCH_BASE_DN = "searchBaseDn";
-    private static final String ATTRIBUTE_SUFFIX = "suffix";
-    private static final String ATTRIBUTE_SYNC_ON_WRITE = "syncOnWrite";
-    private static final String ATTRIBUTE_SYNCH_PERIOD_MILLIS = "synchPeriodMillis";
-    private static final String ATTRIBUTE_WORKING_DIRECTORY = "workingDirectory";
-    private static final String ELEMENT_ACI_AUTHORIZATION_INTERCEPTOR = "aciAuthorizationInterceptor";
-    private static final String ELEMENT_APACHE_DS = "apacheDS";
-    private static final String ELEMENT_AUTHENTICATION_INTERCEPTOR = "authenticationInterceptor";
-    private static final String ELEMENT_BEAN = "bean";
-    private static final String ELEMENT_BEANS = "beans";
-    private static final String ELEMENT_CHANGE_PASSWORD_SERVER = "changePasswordServer";
-    private static final String ELEMENT_COLLECTIVE_ATTRIBUTE_INTERCEPTOR = "collectiveAttributeInterceptor";
-    private static final String ELEMENT_CONTEXT_ENTRY = "contextEntry";
-    private static final String ELEMENT_DATAGRAM_ACCEPTOR = "datagramAcceptor";
-    private static final String ELEMENT_DEFAULT_AUTHORIZATION_INTERCEPTOR = "defaultAuthorizationInterceptor";
-    private static final String ELEMENT_DEFAULT_DIRECTORY_SERVICE = "defaultDirectoryService";
-    private static final String ELEMENT_DNS_SERVER = "dnsServer";
-    private static final String ELEMENT_ENTRY = "entry";
-    private static final String ELEMENT_EVENT_INTERCEPTOR = "eventInterceptor";
-    private static final String ELEMENT_EXCEPTION_INTERCEPTOR = "exceptionInterceptor";
-    private static final String ELEMENT_EXTENDED_OPERATION_HANDLERS = "extendedOperationHandlers";
-    private static final String ELEMENT_GRACEFUL_SHUTDOWN_HANDLER = "gracefulShutdownHandler";
-    private static final String ELEMENT_INDEXED_ATTRIBUTES = "indexedAttributes";
-    private static final String ELEMENT_INTERCEPTORS = "interceptors";
-    private static final String ELEMENT_JDBM_INDEX = "jdbmIndex";
-    private static final String ELEMENT_JDBM_PARTITION = "jdbmPartition";
-    private static final String ELEMENT_KDC_SERVER = "kdcServer";
-    private static final String ELEMENT_LAUNCH_DIAGNOSTIC_UI_HANDLER = "launchDiagnosticUiHandler";
-    private static final String ELEMENT_LDAP_SERVER = "ldapServer";
-    private static final String ELEMENT_LDAPS_SERVER = "ldapsServer";
-    private static final String ELEMENT_LIST = "list";
-    private static final String ELEMENT_LOGIC_EXECUTOR = "logicExecutor";
-    private static final String ELEMENT_MAP = "map";
-    private static final String ELEMENT_NORMALIZATION_INTERCEPTOR = "normalizationInterceptor";
-    private static final String ELEMENT_NTP_SERVER = "ntpServer";
-    private static final String ELEMENT_OPERATIONAL_ATTRIBUTE_INTERCEPTOR = "operationalAttributeInterceptor";
-    private static final String ELEMENT_PARTITIONS = "partitions";
-    private static final String ELEMENT_PROPERTY = "property";
-    private static final String ELEMENT_REF = "ref";
-    private static final String ELEMENT_REFERRAL_INTERCEPTOR = "referralInterceptor";
-    private static final String ELEMENT_REPLICATION_INTERCEPTOR = "replicationInterceptor";
-    private static final String ELEMENT_SASL_QOP = "saslQop";
-    private static final String ELEMENT_SASL_REALMS = "saslRealms";
-    private static final String ELEMENT_SCHEMA_INTERCEPTOR = "schemaInterceptor";
-    private static final String ELEMENT_SOCKET_ACCEPTOR = "socketAcceptor";
-    private static final String ELEMENT_STANDARD_THREAD_POOL = "standardThreadPool";
-    private static final String ELEMENT_START_TLS_HANDLER = "startTlsHandler";
-    private static final String ELEMENT_SUBENTRY_INTERCEPTOR = "subentryInterceptor";
-    private static final String ELEMENT_SUPPORTED_MECHANISMS = "supportedMechanisms";
-    private static final String ELEMENT_SYSTEM_PARTITION = "systemPartition";
-    private static final String ELEMENT_TRIGGER_INTERCEPTOR = "triggerInterceptor";
-    private static final String ELEMENT_VALUE = "value";
-    private static final Namespace NAMESPACE_APACHEDS = new Namespace( null, "http://apacheds.org/config/1.0" );
-    private static final Namespace NAMESPACE_SPRINGFRAMEWORK = new Namespace( "s",
-        "http://www.springframework.org/schema/beans" );
-    private static final Namespace NAMESPACE_XBEAN_SPRING = new Namespace( "spring",
-        "http://xbean.apache.org/schemas/spring/1.0" );
-    private static final String SASL_QOP_AUTH_CONF = "auth-conf";
-    private static final String SASL_QOP_AUTH_INT = "auth-int";
-    private static final String SASL_QOP_AUTH = "auth";
-    private static final String SUPPORTED_MECHANISM_GSSAPI = "GSSAPI";
-    private static final String SUPPORTED_MECHANISM_DIGEST_MD5 = "DIGEST-MD5";
-    private static final String SUPPORTED_MECHANISM_CRAM_MD5 = "CRAM-MD5";
-    private static final String SUPPORTED_MECHANISM_SIMPLE = "SIMPLE";
-    private static final String VALUE_ARGUMENTS = "arguments";
-    private static final String VALUE_CUSTOM_EDITORS = "customEditors";
-    private static final String VALUE_DEFAULT = "default";
-    private static final String VALUE_DIRECTORY_SERVICE = "directoryService";
-    private static final String VALUE_EXAMPLE_DOT_COM = "example.com";
+    private static final String ATTRIBUTE_ACCESS_CONTROL_ENABLED = "accessControlEnabled"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS = "allowAnonymousAccess"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_ATTRIBUTE_ID = "attributeId"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_CACHE_SIZE = "cacheSize"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_CLASS = "class"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_DENORMALIZE_OP_ATTRS_ENABLED = "denormalizeOpAttrsEnabled"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_ENABLE_LDAPS = "enableLdaps"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_ENABLED = "enabled"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_ID = "id"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_INSTANCE_ID = "instanceId"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_IP_PORT = "ipPort"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_KEY = "key"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_LOCAL = "local"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_MAX_SIZE_LIMIT = "maxSizeLimit"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_MAX_THREADS = "maxThreads"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_MAX_TIME_LIMIT = "maxTimeLimit"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_NAME = "name"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_OPTIMIZER_ENABLED = "optimizerEnabled"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SASL_HOST = "saslHost"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SASL_PRINCIPAL = "saslPrincipal"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SEARCH_BASE_DN = "searchBaseDn"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SUFFIX = "suffix"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SYNC_ON_WRITE = "syncOnWrite"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_SYNCH_PERIOD_MILLIS = "synchPeriodMillis"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_WORKING_DIRECTORY = "workingDirectory"; //$NON-NLS-1$
+    private static final String ELEMENT_ACI_AUTHORIZATION_INTERCEPTOR = "aciAuthorizationInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_APACHE_DS = "apacheDS"; //$NON-NLS-1$
+    private static final String ELEMENT_AUTHENTICATION_INTERCEPTOR = "authenticationInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_BEAN = "bean"; //$NON-NLS-1$
+    private static final String ELEMENT_BEANS = "beans"; //$NON-NLS-1$
+    private static final String ELEMENT_CHANGE_PASSWORD_SERVER = "changePasswordServer"; //$NON-NLS-1$
+    private static final String ELEMENT_COLLECTIVE_ATTRIBUTE_INTERCEPTOR = "collectiveAttributeInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_CONTEXT_ENTRY = "contextEntry"; //$NON-NLS-1$
+    private static final String ELEMENT_DATAGRAM_ACCEPTOR = "datagramAcceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_DEFAULT_AUTHORIZATION_INTERCEPTOR = "defaultAuthorizationInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_DEFAULT_DIRECTORY_SERVICE = "defaultDirectoryService"; //$NON-NLS-1$
+    private static final String ELEMENT_DNS_SERVER = "dnsServer"; //$NON-NLS-1$
+    private static final String ELEMENT_ENTRY = "entry"; //$NON-NLS-1$
+    private static final String ELEMENT_EVENT_INTERCEPTOR = "eventInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_EXCEPTION_INTERCEPTOR = "exceptionInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_EXTENDED_OPERATION_HANDLERS = "extendedOperationHandlers"; //$NON-NLS-1$
+    private static final String ELEMENT_GRACEFUL_SHUTDOWN_HANDLER = "gracefulShutdownHandler"; //$NON-NLS-1$
+    private static final String ELEMENT_INDEXED_ATTRIBUTES = "indexedAttributes"; //$NON-NLS-1$
+    private static final String ELEMENT_INTERCEPTORS = "interceptors"; //$NON-NLS-1$
+    private static final String ELEMENT_JDBM_INDEX = "jdbmIndex"; //$NON-NLS-1$
+    private static final String ELEMENT_JDBM_PARTITION = "jdbmPartition"; //$NON-NLS-1$
+    private static final String ELEMENT_KDC_SERVER = "kdcServer"; //$NON-NLS-1$
+    private static final String ELEMENT_LAUNCH_DIAGNOSTIC_UI_HANDLER = "launchDiagnosticUiHandler"; //$NON-NLS-1$
+    private static final String ELEMENT_LDAP_SERVER = "ldapServer"; //$NON-NLS-1$
+    private static final String ELEMENT_LDAPS_SERVER = "ldapsServer"; //$NON-NLS-1$
+    private static final String ELEMENT_LIST = "list"; //$NON-NLS-1$
+    private static final String ELEMENT_LOGIC_EXECUTOR = "logicExecutor"; //$NON-NLS-1$
+    private static final String ELEMENT_MAP = "map"; //$NON-NLS-1$
+    private static final String ELEMENT_NORMALIZATION_INTERCEPTOR = "normalizationInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_NTP_SERVER = "ntpServer"; //$NON-NLS-1$
+    private static final String ELEMENT_OPERATIONAL_ATTRIBUTE_INTERCEPTOR = "operationalAttributeInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_PARTITIONS = "partitions"; //$NON-NLS-1$
+    private static final String ELEMENT_PROPERTY = "property"; //$NON-NLS-1$
+    private static final String ELEMENT_REF = "ref"; //$NON-NLS-1$
+    private static final String ELEMENT_REFERRAL_INTERCEPTOR = "referralInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_REPLICATION_INTERCEPTOR = "replicationInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_SASL_QOP = "saslQop"; //$NON-NLS-1$
+    private static final String ELEMENT_SASL_REALMS = "saslRealms"; //$NON-NLS-1$
+    private static final String ELEMENT_SCHEMA_INTERCEPTOR = "schemaInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_SOCKET_ACCEPTOR = "socketAcceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_STANDARD_THREAD_POOL = "standardThreadPool"; //$NON-NLS-1$
+    private static final String ELEMENT_START_TLS_HANDLER = "startTlsHandler"; //$NON-NLS-1$
+    private static final String ELEMENT_SUBENTRY_INTERCEPTOR = "subentryInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_SUPPORTED_MECHANISMS = "supportedMechanisms"; //$NON-NLS-1$
+    private static final String ELEMENT_SYSTEM_PARTITION = "systemPartition"; //$NON-NLS-1$
+    private static final String ELEMENT_TRIGGER_INTERCEPTOR = "triggerInterceptor"; //$NON-NLS-1$
+    private static final String ELEMENT_VALUE = "value"; //$NON-NLS-1$
+    private static final Namespace NAMESPACE_APACHEDS = new Namespace( null, "http://apacheds.org/config/1.0" ); //$NON-NLS-1$
+    private static final Namespace NAMESPACE_SPRINGFRAMEWORK = new Namespace( "s", //$NON-NLS-1$
+        "http://www.springframework.org/schema/beans" ); //$NON-NLS-1$
+    private static final Namespace NAMESPACE_XBEAN_SPRING = new Namespace( "spring", //$NON-NLS-1$
+        "http://xbean.apache.org/schemas/spring/1.0" ); //$NON-NLS-1$
+    private static final String SASL_QOP_AUTH_CONF = "auth-conf"; //$NON-NLS-1$
+    private static final String SASL_QOP_AUTH_INT = "auth-int"; //$NON-NLS-1$
+    private static final String SASL_QOP_AUTH = "auth"; //$NON-NLS-1$
+    private static final String SUPPORTED_MECHANISM_GSSAPI = "GSSAPI"; //$NON-NLS-1$
+    private static final String SUPPORTED_MECHANISM_DIGEST_MD5 = "DIGEST-MD5"; //$NON-NLS-1$
+    private static final String SUPPORTED_MECHANISM_CRAM_MD5 = "CRAM-MD5"; //$NON-NLS-1$
+    private static final String SUPPORTED_MECHANISM_SIMPLE = "SIMPLE"; //$NON-NLS-1$
+    private static final String VALUE_ARGUMENTS = "arguments"; //$NON-NLS-1$
+    private static final String VALUE_CUSTOM_EDITORS = "customEditors"; //$NON-NLS-1$
+    private static final String VALUE_DEFAULT = "default"; //$NON-NLS-1$
+    private static final String VALUE_DIRECTORY_SERVICE = "directoryService"; //$NON-NLS-1$
+    private static final String VALUE_EXAMPLE_DOT_COM = "example.com"; //$NON-NLS-1$
 
 
     /* (non-Javadoc)
@@ -302,7 +303,7 @@
         Element defaultDirectoryServiceElement = element.element( ELEMENT_DEFAULT_DIRECTORY_SERVICE );
         if ( defaultDirectoryServiceElement == null )
         {
-            throw new ServerXmlIOException( "Unable to find the 'defaultDirectoryService' tag." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorDefaultDirectoryService" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -313,8 +314,7 @@
             {
                 // If the 'accessControlEnabled' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException(
-                    "Unable to find the 'accessControlEnabled' attribute for the default directory service bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorAccessControlEnabled" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -328,8 +328,8 @@
             {
                 // If the 'denormalizeOpAttrsEnabled' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException(
-                    "Unable to find the 'denormalizeOpAttrsEnabled' attribute for the default directory service bean." );
+                throw new ServerXmlIOException( Messages
+                    .getString( "ServerXmlIOV152.ErrorDenormalizationOpAttrsEnabled" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -365,7 +365,7 @@
         Element standardThreadPoolElement = element.element( ServerXmlIOV152.ELEMENT_STANDARD_THREAD_POOL );
         if ( standardThreadPoolElement == null )
         {
-            throw new ServerXmlIOException( "Unable to find the 'standardThreadPool' tag." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorStandardThreadPool" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -376,8 +376,7 @@
             {
                 // If the 'maxThreads' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException(
-                    "Unable to find the 'maxThreads' attribute for the StandardThreadPool bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorMaxThreads" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -406,7 +405,7 @@
         {
             // If the 'systemPartition' element does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'systemPartition' element." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSystemPartition" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -416,7 +415,7 @@
             {
                 // If the 'jdbmPartition' element does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'jdbmPartition' element for the system partition." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorJDBMElement" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -454,7 +453,7 @@
         {
             // If the 'id' attribute does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'id' attribute for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorId" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -467,7 +466,7 @@
         {
             // If the 'cacheSize' attribute does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'cacheSize' attribute for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorCacheSize" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -480,7 +479,7 @@
         {
             // If the 'suffix' attribute does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'suffix' attribute for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSuffix" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -493,7 +492,7 @@
         {
             // If the 'optimizeEnabled' attribute does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'OptimizerEnabled' attribute for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorOptimizerEnabled" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -506,7 +505,7 @@
         {
             // If the 'syncOnWrite' attribute does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'syncOnWrite' attribute for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSyncOnWrite" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -583,7 +582,7 @@
         {
             // If the 'contextEntry' element does not exists,
             // we throw an exception
-            throw new ServerXmlIOException( "Unable to find the 'contextEntry' element for a partition." );
+            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorContextEntry" ) ); //$NON-NLS-1$
         }
         else
         {
@@ -666,7 +665,7 @@
                         {
                             // If the correct property element does not exists,
                             // we throw an exception
-                            throw new ServerXmlIOException( "Unable to find the property element named 'arguments'." );
+                            throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorArguments" ) ); //$NON-NLS-1$
                         }
                     }
                 }
@@ -678,7 +677,8 @@
             {
                 // If the correct bean element does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the bean element named '" + linkedBeanId + "'." );
+                throw new ServerXmlIOException( NLS.bind(
+                    Messages.getString( "ServerXmlIOV152.ErrorBean" ), new String[] { linkedBeanId } ) ); //$NON-NLS-1$
             }
         }
 
@@ -845,8 +845,7 @@
             {
                 // If the 'ipPort' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException(
-                    "Unable to find the 'ipPort' attribute for the 'changePasswordServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorChangePasswordServerPort" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -892,7 +891,7 @@
             {
                 // If the 'ipPort' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'ipPort' attribute for the 'kdcServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorKdcServerPort" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -938,7 +937,7 @@
             {
                 // If the 'ipPort' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'ipPort' attribute for the 'ntpServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorNtpServerPort" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -984,7 +983,7 @@
             {
                 // If the 'ipPort' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'ipPort' attribute for the 'dnsServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorDnsServerPort" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -1021,7 +1020,7 @@
             {
                 // If the 'id' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'id' attribute for the 'ldapServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorLdapServerId" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -1060,8 +1059,7 @@
                     {
                         // If the 'ipPort' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'ipPort' attribute for the 'ldapsServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorLdapsServerPort" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1102,7 +1100,7 @@
             {
                 // If the 'id' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'id' attribute for the 'ldapServer' bean." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorLdapServerId" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -1129,8 +1127,7 @@
                     {
                         // If the 'ipPort' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'ipPort' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorLdapServerPort" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1144,8 +1141,7 @@
                     {
                         // If the 'allowAnonymousAccess' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'allowAnonymousAccess' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorAllowedAnonymous" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1160,8 +1156,7 @@
                     {
                         // If the 'saslHost' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'saslHost' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSaslHost" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1175,8 +1170,7 @@
                     {
                         // If the 'saslPrincipal' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'saslPrincipal' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSaslPrincipal" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1190,8 +1184,7 @@
                     {
                         // If the 'searchBaseDn' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'searchBaseDn' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSearchBaseDn" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1205,8 +1198,7 @@
                     {
                         // If the 'maxTimeLimit' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'maxTimeLimit' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorMaxTimeLimit" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1220,8 +1212,7 @@
                     {
                         // If the 'maxSizeLimit' attribute does not exists,
                         // we throw an exception
-                        throw new ServerXmlIOException(
-                            "Unable to find the 'maxSizeLimit' attribute for the 'ldapServer' bean." );
+                        throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorMaxSizeLimit" ) ); //$NON-NLS-1$
                     }
                     else
                     {
@@ -1383,7 +1374,7 @@
             {
                 // If the 'synchPeriodMillis' attribute does not exists,
                 // we throw an exception
-                throw new ServerXmlIOException( "Unable to find the 'synchPeriodMillis' attribute for a partition." );
+                throw new ServerXmlIOException( Messages.getString( "ServerXmlIOV152.ErrorSyncPeriodMillis" ) ); //$NON-NLS-1$
             }
             else
             {
@@ -1414,18 +1405,18 @@
         Element standardThreadPoolElement = root.addElement( ServerXmlIOV152.ELEMENT_STANDARD_THREAD_POOL );
         standardThreadPoolElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID,
             ServerXmlIOV152.ELEMENT_STANDARD_THREAD_POOL );
-        standardThreadPoolElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_THREADS, ""
+        standardThreadPoolElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_THREADS, "" //$NON-NLS-1$
             + ( ( ServerConfigurationV152 ) serverConfiguration ).getMaxThreads() );
 
         // Adding the 'datagramAcceptor' element
         Element datagramAcceptorElement = root.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR );
         datagramAcceptorElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR );
-        datagramAcceptorElement.addAttribute( ServerXmlIOV152.ELEMENT_LOGIC_EXECUTOR, "#standardThreadPool" );
+        datagramAcceptorElement.addAttribute( ServerXmlIOV152.ELEMENT_LOGIC_EXECUTOR, "#standardThreadPool" ); //$NON-NLS-1$
 
         // Adding the 'socketAcceptor' element
         Element socketAcceptorElement = root.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR );
         socketAcceptorElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR );
-        socketAcceptorElement.addAttribute( ServerXmlIOV152.ELEMENT_LOGIC_EXECUTOR, "#standardThreadPool" );
+        socketAcceptorElement.addAttribute( ServerXmlIOV152.ELEMENT_LOGIC_EXECUTOR, "#standardThreadPool" ); //$NON-NLS-1$
 
         // ChangePasswordServer Bean
         createChangePasswordServerBean( root, ( ServerConfigurationV152 ) serverConfiguration );
@@ -1491,15 +1482,15 @@
             ServerXmlIOV152.VALUE_EXAMPLE_DOT_COM );
 
         // AllowAnonymousAccess
-        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, ""
+        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, "" //$NON-NLS-1$
             + serverConfiguration.isAllowAnonymousAccess() );
 
         // AccessControlEnabled
-        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ACCESS_CONTROL_ENABLED, ""
+        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ACCESS_CONTROL_ENABLED, "" //$NON-NLS-1$
             + serverConfiguration.isEnableAccessControl() );
 
         // DenormalizeOpAttrsEnabled
-        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_DENORMALIZE_OP_ATTRS_ENABLED, ""
+        defaultDirectoryServiceElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_DENORMALIZE_OP_ATTRS_ENABLED, "" //$NON-NLS-1$
             + serverConfiguration.isDenormalizeOpAttr() );
 
         // Adding the 'systemPartition' element
@@ -1589,17 +1580,17 @@
         jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, partition.getId() );
 
         // CacheSize
-        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CACHE_SIZE, "" + partition.getCacheSize() );
+        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CACHE_SIZE, "" + partition.getCacheSize() ); //$NON-NLS-1$
 
         // Suffix
         jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SUFFIX, partition.getSuffix() );
 
         // OptimizerEnabled
-        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_OPTIMIZER_ENABLED, ""
+        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_OPTIMIZER_ENABLED, "" //$NON-NLS-1$
             + partition.isEnableOptimizer() );
 
         // SyncOnWrite
-        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SYNC_ON_WRITE, ""
+        jdbmPartitionElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SYNC_ON_WRITE, "" //$NON-NLS-1$
             + partition.isSynchronizationOnWrite() );
 
         // IndexedAttributes
@@ -1632,7 +1623,7 @@
                 Element jdbmIndexElement = indexedAttributeElement.addElement( ServerXmlIOV152.ELEMENT_JDBM_INDEX );
                 jdbmIndexElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ATTRIBUTE_ID, indexedAttribute
                     .getAttributeId() );
-                jdbmIndexElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CACHE_SIZE, ""
+                jdbmIndexElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CACHE_SIZE, "" //$NON-NLS-1$
                     + indexedAttribute.getCacheSize() );
             }
         }
@@ -1654,19 +1645,19 @@
     private void createContextEntry( Element element, Attributes contextEntry, String id, String dn )
     {
         // Adding the 'contextEntry' element
-        element.addElement( ServerXmlIOV152.ELEMENT_CONTEXT_ENTRY ).setText( "#" + id + "ContextEntry" );
+        element.addElement( ServerXmlIOV152.ELEMENT_CONTEXT_ENTRY ).setText( "#" + id + "ContextEntry" ); //$NON-NLS-1$ //$NON-NLS-2$
 
         // Adding the 'bean' element
         Element beanElement = element.getDocument().getRootElement().addElement(
             new QName( ServerXmlIOV152.ELEMENT_BEAN, NAMESPACE_XBEAN_SPRING ) );
-        beanElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, id + "ContextEntry" );
+        beanElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, id + "ContextEntry" ); //$NON-NLS-1$
         beanElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CLASS,
-            "org.springframework.beans.factory.config.MethodInvokingFactoryBean" );
+            "org.springframework.beans.factory.config.MethodInvokingFactoryBean" ); //$NON-NLS-1$
 
         // Adding the targetObject 'property' element
         Element targetObjectPropertyElement = beanElement.addElement( new QName( ServerXmlIOV152.ELEMENT_PROPERTY,
             NAMESPACE_XBEAN_SPRING ) );
-        targetObjectPropertyElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_NAME, "targetObject" );
+        targetObjectPropertyElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_NAME, "targetObject" ); //$NON-NLS-1$
 
         // Adding the targetObject 'ref' element
         Element targetObjectRefElement = targetObjectPropertyElement.addElement( new QName(
@@ -1676,11 +1667,11 @@
         // Adding the targetMethod 'property' element
         Element targetMethodPropertyElement = beanElement.addElement( new QName( ServerXmlIOV152.ELEMENT_PROPERTY,
             NAMESPACE_XBEAN_SPRING ) );
-        targetMethodPropertyElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_NAME, "targetMethod" );
+        targetMethodPropertyElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_NAME, "targetMethod" ); //$NON-NLS-1$
 
         // Adding the targetMethod 'value' element
         targetMethodPropertyElement.addElement( new QName( ServerXmlIOV152.ELEMENT_VALUE, NAMESPACE_XBEAN_SPRING ) )
-            .setText( "newEntry" );
+            .setText( "newEntry" ); //$NON-NLS-1$
 
         // Adding the arguments 'property' element
         Element argumentsPropertyElement = beanElement.addElement( new QName( ServerXmlIOV152.ELEMENT_PROPERTY,
@@ -1693,7 +1684,7 @@
 
         // Adding the arguments attributes 'value' element
         Element argumentsAttributesValueElement = argumentsListElement.addElement( new QName(
-            ServerXmlIOV152.ELEMENT_VALUE, new Namespace( "spring", "http://www.springframework.org/schema/beans" ) ) );
+            ServerXmlIOV152.ELEMENT_VALUE, new Namespace( "spring", "http://www.springframework.org/schema/beans" ) ) ); //$NON-NLS-1$ //$NON-NLS-2$
 
         // Creating a string buffer to contain the LDIF data
         StringBuffer sb = new StringBuffer();
@@ -1708,7 +1699,7 @@
                 NamingEnumeration<?> values = attribute.getAll();
                 while ( values.hasMoreElements() )
                 {
-                    sb.append( attribute.getID() + ": " + values.nextElement() + "\n" );
+                    sb.append( attribute.getID() + ": " + values.nextElement() + "\n" ); //$NON-NLS-1$ //$NON-NLS-2$
                 }
             }
             catch ( NamingException e )
@@ -1809,24 +1800,24 @@
             Element changePasswordServerElement = root.addElement( ServerXmlIOV152.ELEMENT_CHANGE_PASSWORD_SERVER );
 
             // Enabled
-            changePasswordServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, ""
+            changePasswordServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" //$NON-NLS-1$
                 + serverConfiguration.isEnableChangePassword() );
 
             // IpPort
-            changePasswordServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, ""
+            changePasswordServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" //$NON-NLS-1$
                 + serverConfiguration.getChangePasswordPort() );
 
             // Adding 'directoryService' element
             changePasswordServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText(
-                "#directoryService" );
+                "#directoryService" ); //$NON-NLS-1$
 
             // Adding 'datagramAcceptor' element
             changePasswordServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText(
-                "#datagramAcceptor" );
+                "#datagramAcceptor" ); //$NON-NLS-1$
 
             // Adding 'socketAcceptor' element
             changePasswordServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText(
-                "#socketAcceptor" );
+                "#socketAcceptor" ); //$NON-NLS-1$
         }
     }
 
@@ -1847,21 +1838,21 @@
             Element kdcServerElement = root.addElement( ServerXmlIOV152.ELEMENT_KDC_SERVER );
 
             // Enabled
-            kdcServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, ""
+            kdcServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" //$NON-NLS-1$
                 + serverConfiguration.isEnableKerberos() );
 
             // IpPort
-            kdcServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, ""
+            kdcServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" //$NON-NLS-1$
                 + serverConfiguration.getKerberosPort() );
 
             // Adding 'directoryService' element
-            kdcServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" );
+            kdcServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" ); //$NON-NLS-1$
 
             // Adding 'datagramAcceptor' element
-            kdcServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" );
+            kdcServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" ); //$NON-NLS-1$
 
             // Adding 'socketAcceptor' element
-            kdcServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" );
+            kdcServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" ); //$NON-NLS-1$
         }
     }
 
@@ -1882,16 +1873,16 @@
             Element ntpServerElement = root.addElement( ServerXmlIOV152.ELEMENT_NTP_SERVER );
 
             // Enabled
-            ntpServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableNtp() );
+            ntpServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableNtp() ); //$NON-NLS-1$
 
             // IpPort
-            ntpServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getNtpPort() );
+            ntpServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getNtpPort() ); //$NON-NLS-1$
 
             // Adding 'datagramAcceptor' element
-            ntpServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" );
+            ntpServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" ); //$NON-NLS-1$
 
             // Adding 'socketAcceptor' element
-            ntpServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" );
+            ntpServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" ); //$NON-NLS-1$
         }
     }
 
@@ -1912,19 +1903,19 @@
             Element dnsServerElement = root.addElement( ServerXmlIOV152.ELEMENT_DNS_SERVER );
 
             // Enabled
-            dnsServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableDns() );
+            dnsServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableDns() ); //$NON-NLS-1$
 
             // IpPort
-            dnsServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getDnsPort() );
+            dnsServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getDnsPort() ); //$NON-NLS-1$
 
             // Adding 'directoryService' element
-            dnsServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" );
+            dnsServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" ); //$NON-NLS-1$
 
             // Adding 'datagramAcceptor' element
-            dnsServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" );
+            dnsServerElement.addElement( ServerXmlIOV152.ELEMENT_DATAGRAM_ACCEPTOR ).setText( "#datagramAcceptor" ); //$NON-NLS-1$
 
             // Adding 'socketAcceptor' element
-            dnsServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" );
+            dnsServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" ); //$NON-NLS-1$
         }
     }
 
@@ -1946,20 +1937,20 @@
         ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, ServerXmlIOV152.ELEMENT_LDAPS_SERVER );
 
         // IpPort
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getLdapsPort() );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getLdapsPort() ); //$NON-NLS-1$
 
         // Enabled
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableLdaps() );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableLdaps() ); //$NON-NLS-1$
 
         // EnableLdaps
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLE_LDAPS, ""
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLE_LDAPS, "" //$NON-NLS-1$
             + serverConfiguration.isEnableLdaps() );
 
         // Adding 'directoryService' element
-        ldapServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" );
+        ldapServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" ); //$NON-NLS-1$
 
         // Adding 'socketAcceptor' element
-        ldapServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" );
+        ldapServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" ); //$NON-NLS-1$
 
     }
 
@@ -1981,38 +1972,38 @@
         ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, ServerXmlIOV152.ELEMENT_LDAP_SERVER );
 
         // Enabled
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableLdap() );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ENABLED, "" + serverConfiguration.isEnableLdap() ); //$NON-NLS-1$
 
         // IpPort
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getLdapPort() );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_IP_PORT, "" + serverConfiguration.getLdapPort() ); //$NON-NLS-1$
 
         // AllowAnonymousAccess
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, ""
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, "" //$NON-NLS-1$
             + serverConfiguration.isAllowAnonymousAccess() );
 
         // SaslHost
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SASL_HOST, "" + serverConfiguration.getSaslHost() );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SASL_HOST, "" + serverConfiguration.getSaslHost() ); //$NON-NLS-1$
 
         // SaslPrincipal
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SASL_PRINCIPAL, ""
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SASL_PRINCIPAL, "" //$NON-NLS-1$
             + serverConfiguration.getSaslPrincipal() );
 
         // SearchBaseDn
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SEARCH_BASE_DN, "ou=users,ou=system" );
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SEARCH_BASE_DN, "ou=users,ou=system" ); //$NON-NLS-1$
 
         // MaxTimeLimit
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_TIME_LIMIT, ""
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_TIME_LIMIT, "" //$NON-NLS-1$
             + serverConfiguration.getMaxTimeLimit() );
 
         // MaxSizeLimit
-        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_SIZE_LIMIT, ""
+        ldapServerElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_MAX_SIZE_LIMIT, "" //$NON-NLS-1$
             + serverConfiguration.getMaxSizeLimit() );
 
         // Adding 'directoryService' element
-        ldapServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" );
+        ldapServerElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" ); //$NON-NLS-1$
 
         // Adding 'socketAcceptor' element
-        ldapServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" );
+        ldapServerElement.addElement( ServerXmlIOV152.ELEMENT_SOCKET_ACCEPTOR ).setText( "#socketAcceptor" ); //$NON-NLS-1$
 
         // Adding 'supportedMechanisms' element
         Element supportedMechanismsElement = ldapServerElement
@@ -2117,21 +2108,21 @@
         apacheDSElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ID, ServerXmlIOV152.ELEMENT_APACHE_DS );
 
         // SynchPeriodMillis
-        apacheDSElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SYNCH_PERIOD_MILLIS, ""
+        apacheDSElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_SYNCH_PERIOD_MILLIS, "" //$NON-NLS-1$
             + serverConfiguration.getSynchronizationPeriod() );
 
         // AllowAnonymousAccess
-        apacheDSElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, ""
+        apacheDSElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_ALLOW_ANONYMOUS_ACCESS, "" //$NON-NLS-1$
             + serverConfiguration.isAllowAnonymousAccess() );
 
         // Adding 'directoryService' element
-        apacheDSElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" );
+        apacheDSElement.addElement( ServerXmlIOV152.VALUE_DIRECTORY_SERVICE ).setText( "#directoryService" ); //$NON-NLS-1$
 
         // Adding 'ldapServer' element
-        apacheDSElement.addElement( ServerXmlIOV152.ELEMENT_LDAP_SERVER ).setText( "#ldapServer" );
+        apacheDSElement.addElement( ServerXmlIOV152.ELEMENT_LDAP_SERVER ).setText( "#ldapServer" ); //$NON-NLS-1$
 
         // Adding 'ldapsServer' element
-        apacheDSElement.addElement( ServerXmlIOV152.ELEMENT_LDAPS_SERVER ).setText( "#ldapsServer" );
+        apacheDSElement.addElement( ServerXmlIOV152.ELEMENT_LDAPS_SERVER ).setText( "#ldapsServer" ); //$NON-NLS-1$
     }
 
 
@@ -2148,7 +2139,7 @@
         // Adding the 'bean' element
         Element beanElement = root.addElement( new QName( ServerXmlIOV152.ELEMENT_BEAN, NAMESPACE_XBEAN_SPRING ) );
         beanElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CLASS,
-            "org.springframework.beans.factory.config.CustomEditorConfigurer" );
+            "org.springframework.beans.factory.config.CustomEditorConfigurer" ); //$NON-NLS-1$
 
         // Adding the 'property' element
         Element propertyElement = beanElement.addElement( new QName( ServerXmlIOV152.ELEMENT_PROPERTY,
@@ -2162,12 +2153,12 @@
         // Adding the 'entry' element
         Element entryElement = mapElement
             .addElement( new QName( ServerXmlIOV152.ELEMENT_ENTRY, NAMESPACE_XBEAN_SPRING ) );
-        entryElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_KEY, "javax.naming.directory.Attributes" );
+        entryElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_KEY, "javax.naming.directory.Attributes" ); //$NON-NLS-1$
 
         // Adding the inner 'bean' element
         Element innerBeanElement = entryElement.addElement( new QName( ServerXmlIOV152.ELEMENT_BEAN,
             NAMESPACE_XBEAN_SPRING ) );
         innerBeanElement.addAttribute( ServerXmlIOV152.ATTRIBUTE_CLASS,
-            "org.apache.directory.server.core.configuration.AttributesPropertyEditor" );
+            "org.apache.directory.server.core.configuration.AttributesPropertyEditor" ); //$NON-NLS-1$
     }
 }

Added: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties?rev=721406&view=auto
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties (added)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties Fri Nov 28 01:51:40 2008
@@ -0,0 +1,49 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+SaslQualityOfProtectionEnum.AuthenticationOnly=auth (Authentication only)
+SaslQualityOfProtectionEnum.AuthenticationWithIntegrityAndPrivacyProtection=auth-conf (Authentication with integrity and privacy protection)
+SaslQualityOfProtectionEnum.AuthenticationWithIntegrityProtection=auth-int (Authentication with integrity protection)
+ServerXmlIOV152.ErrorAccessControlEnabled=Unable to find the 'accessControlEnabled' attribute for the default directory service bean.
+ServerXmlIOV152.ErrorAllowedAnonymous=Unable to find the 'allowAnonymousAccess' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorArguments=Unable to find the property element named 'arguments'.
+ServerXmlIOV152.ErrorBean=Unable to find the bean element named "{0}".
+ServerXmlIOV152.ErrorCacheSize=Unable to find the 'cacheSize' attribute for a partition.
+ServerXmlIOV152.ErrorChangePasswordServerPort=Unable to find the 'ipPort' attribute for the 'changePasswordServer' bean.
+ServerXmlIOV152.ErrorContextEntry=Unable to find the 'contextEntry' element for a partition.
+ServerXmlIOV152.ErrorDefaultDirectoryService=Unable to find the 'defaultDirectoryService' tag.
+ServerXmlIOV152.ErrorDenormalizationOpAttrsEnabled=Unable to find the 'denormalizeOpAttrsEnabled' attribute for the default directory service bean.
+ServerXmlIOV152.ErrorDnsServerPort=Unable to find the 'ipPort' attribute for the 'dnsServer' bean.
+ServerXmlIOV152.ErrorId=Unable to find the 'id' attribute for a partition.
+ServerXmlIOV152.ErrorJDBMElement=Unable to find the 'jdbmPartition' element for the system partition.
+ServerXmlIOV152.ErrorKdcServerPort=Unable to find the 'ipPort' attribute for the 'kdcServer' bean.
+ServerXmlIOV152.ErrorLdapServerId=Unable to find the 'id' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorLdapServerPort=Unable to find the 'ipPort' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorLdapsServerPort=Unable to find the 'ipPort' attribute for the 'ldapsServer' bean.
+ServerXmlIOV152.ErrorMaxSizeLimit=Unable to find the 'maxSizeLimit' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorMaxThreads=Unable to find the 'maxThreads' attribute for the StandardThreadPool bean.
+ServerXmlIOV152.ErrorMaxTimeLimit=Unable to find the 'maxTimeLimit' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorNtpServerPort=Unable to find the 'ipPort' attribute for the 'ntpServer' bean.
+ServerXmlIOV152.ErrorOptimizerEnabled=Unable to find the 'OptimizerEnabled' attribute for a partition.
+ServerXmlIOV152.ErrorSaslHost=Unable to find the 'saslHost' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorSaslPrincipal=Unable to find the 'saslPrincipal' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorSearchBaseDn=Unable to find the 'searchBaseDn' attribute for the 'ldapServer' bean.
+ServerXmlIOV152.ErrorStandardThreadPool=Unable to find the 'standardThreadPool' tag.
+ServerXmlIOV152.ErrorSuffix=Unable to find the 'suffix' attribute for a partition.
+ServerXmlIOV152.ErrorSyncOnWrite=Unable to find the 'syncOnWrite' attribute for a partition.
+ServerXmlIOV152.ErrorSyncPeriodMillis=Unable to find the 'synchPeriodMillis' attribute for a partition.
+ServerXmlIOV152.ErrorSystemPartition=Unable to find the 'systemPartition' element.

Propchange: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message